From 278dc0775ef4b16b28ce0b8fd66419d444a9e7fb Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 6 Jan 2022 13:25:03 +0000 Subject: [PATCH] Bug 29810: Document x-koha-embed header on libraries endpoints Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- api/v1/swagger/paths/libraries.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/api/v1/swagger/paths/libraries.yaml b/api/v1/swagger/paths/libraries.yaml index 754f87bf07..0d0cecbb01 100644 --- a/api/v1/swagger/paths/libraries.yaml +++ b/api/v1/swagger/paths/libraries.yaml @@ -99,6 +99,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: + - smtp_server + collectionFormat: csv produces: - application/json responses: @@ -183,6 +193,16 @@ summary: Get library parameters: - $ref: "../swagger.yaml#/parameters/library_id_pp" + - name: x-koha-embed + in: header + required: false + description: Embed list sent as a request header + type: array + items: + type: string + enum: + - smtp_server + collectionFormat: csv produces: - application/json responses: -- 2.35.1