From 2653487ece57ab2a92c6bf87e7f8b2affe83003a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 6 Jan 2022 13:27:15 +0000 Subject: [PATCH] Bug 29810: Document x-koha-embed header on orders endpoints --- api/v1/swagger/paths/acquisitions_orders.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/api/v1/swagger/paths/acquisitions_orders.yaml b/api/v1/swagger/paths/acquisitions_orders.yaml index 717ca7a7ba..44d3495290 100644 --- a/api/v1/swagger/paths/acquisitions_orders.yaml +++ b/api/v1/swagger/paths/acquisitions_orders.yaml @@ -42,6 +42,28 @@ - $ref: ../parameters.yaml#/q_param - $ref: ../parameters.yaml#/q_body - $ref: ../parameters.yaml#/q_header + - name: x-koha-embed + in: header + required: false + description: Embed list sent as a request header + type: array + items: + type: string + enum: + - basket + - basket.basket_group + - basket.creator + - biblio + - biblio.active_orders+count + - biblio.holds+count + - biblio.items+count + - biblio.suggestions.suggester + - fund + - current_item_level_holds+count + - invoice + - items + - subscription + collectionFormat: csv responses: "200": description: A list of orders @@ -150,6 +172,28 @@ summary: Get order parameters: - $ref: ../parameters.yaml#/order_id_pp + - name: x-koha-embed + in: header + required: false + description: Embed list sent as a request header + type: array + items: + type: string + enum: + - basket + - basket.basket_group + - basket.creator + - biblio + - biblio.active_orders+count + - biblio.holds+count + - biblio.items+count + - biblio.suggestions.suggester + - fund + - current_item_level_holds+count + - invoice + - items + - subscription + collectionFormat: csv produces: - application/json responses: -- 2.20.1