From 3e3af4a32ef7390ccf3e9ff569199e04b33d566b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 17 Mar 2023 15:07:37 +0100 Subject: [PATCH] Bug 32923: (follow-up) Fix x-koha-embed from EHoldings/*/* --- api/v1/swagger/paths/erm_eholdings_resources.yaml | 12 ++++++++++++ api/v1/swagger/paths/erm_eholdings_titles.yaml | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/api/v1/swagger/paths/erm_eholdings_resources.yaml b/api/v1/swagger/paths/erm_eholdings_resources.yaml index 9d4e5f30453..a824ed6491d 100644 --- a/api/v1/swagger/paths/erm_eholdings_resources.yaml +++ b/api/v1/swagger/paths/erm_eholdings_resources.yaml @@ -95,6 +95,18 @@ required: true type: string - $ref: "../swagger.yaml#/parameters/eholdings_resource_id_pp" + - name: x-koha-embed + in: header + required: false + description: Embed list sent as a request header + type: array + items: + type: string + enum: + - title + - package + - vendor + collectionFormat: csv responses: 200: description: An eHolding resource diff --git a/api/v1/swagger/paths/erm_eholdings_titles.yaml b/api/v1/swagger/paths/erm_eholdings_titles.yaml index b8a58dfbe6a..152fb7f8cea 100644 --- a/api/v1/swagger/paths/erm_eholdings_titles.yaml +++ b/api/v1/swagger/paths/erm_eholdings_titles.yaml @@ -144,6 +144,16 @@ name: access_type required: false type: string + - name: x-koha-embed + in: header + required: false + description: Embed list sent as a request header + type: array + items: + type: string + enum: + - resources.package + collectionFormat: csv - $ref: "../swagger.yaml#/parameters/match" - $ref: "../swagger.yaml#/parameters/order_by" - $ref: "../swagger.yaml#/parameters/page" -- 2.25.1