From 53fc8a9c57f62663d8115d48eadeda287617e55c 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 --- 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 50a672643f..bb0d4bc533 100644 --- a/api/v1/swagger/paths/patrons.yaml +++ b/api/v1/swagger/paths/patrons.yaml @@ -351,6 +351,16 @@ - $ref: "../swagger.yaml#/parameters/q_param" - $ref: "../swagger.yaml#/parameters/q_body" - $ref: "../swagger.yaml#/parameters/q_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 @@ -448,6 +458,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.20.1