Bug 32923: Allow to embed user_roles for agreements
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 22 Mar 2023 09:25:56 +0000 (10:25 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 23 Mar 2023 14:04:07 +0000 (15:04 +0100)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
api/v1/swagger/paths/erm_agreements.yaml

index 37233bd..614569c 100644 (file)
         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"