From 3deb066c789e3361f1658f119bd3f3a62b127379 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Mar 2023 10:25:56 +0100 Subject: [PATCH] Bug 32923: Allow to embed user_roles for agreements Signed-off-by: Jonathan Druart (cherry picked from commit 479d8719c548c11ae8fd26343324f085ee92b536) Signed-off-by: Martin Renvoize --- api/v1/swagger/paths/erm_agreements.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/v1/swagger/paths/erm_agreements.yaml b/api/v1/swagger/paths/erm_agreements.yaml index 37233bdf37..614569c7b2 100644 --- a/api/v1/swagger/paths/erm_agreements.yaml +++ b/api/v1/swagger/paths/erm_agreements.yaml @@ -59,6 +59,16 @@ name: max_expiration_date type: string format: date + - name: x-koha-embed + in: header + required: false + description: Embed list sent as a request header + type: array + items: + type: string + enum: + - user_roles + collectionFormat: csv - $ref: "../swagger.yaml#/parameters/match" - $ref: "../swagger.yaml#/parameters/order_by" - $ref: "../swagger.yaml#/parameters/page" -- 2.39.5