From ddb200e48f40aede5e9518977b9745a34188a722 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
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 <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
---
 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 754f87bf072..0d0cecbb018 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.25.1