From 3cdf0a8795fb43b9507ea553b7ef5814c4adcd1f Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 6 Jan 2022 13:12:11 +0000 Subject: [PATCH] Bug 29810: Document x-koha-embed header on patrons endpoints Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- api/v1/swagger/paths/patrons.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/api/v1/swagger/paths/patrons.yaml b/api/v1/swagger/paths/patrons.yaml index 9519bc1928..10538a1c1a 100644 --- a/api/v1/swagger/paths/patrons.yaml +++ b/api/v1/swagger/paths/patrons.yaml @@ -352,6 +352,16 @@ - $ref: "../swagger.yaml#/parameters/q_body" - $ref: "../swagger.yaml#/parameters/q_header" - $ref: "../swagger.yaml#/parameters/request_id_header" + - name: x-koha-embed + in: header + required: false + description: Embed list sent as a request header + type: array + items: + type: string + enum: + - extended_attributes + collectionFormat: csv responses: "200": description: A list of patrons @@ -455,6 +465,16 @@ summary: Get patron parameters: - $ref: "../swagger.yaml#/parameters/patron_id_pp" + - name: x-koha-embed + in: header + required: false + description: Embed list sent as a request header + type: array + items: + type: string + enum: + - extended_attributes + collectionFormat: csv produces: - application/json responses: -- 2.35.1