Bugzilla – Attachment 148557 Details for
Bug 33306
Agreements list endpoint cannot embed user_roles
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33306: Add embed header parameter to agreements api definition
Bug-33306-Add-embed-header-parameter-to-agreements.patch (text/plain), 1.21 KB, created by
Agustín Moyano
on 2023-03-22 14:28:54 UTC
(
hide
)
Description:
Bug 33306: Add embed header parameter to agreements api definition
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2023-03-22 14:28:54 UTC
Size:
1.21 KB
patch
obsolete
>From 10429db684f380f68fb30f39e914b234d78793b8 Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Wed, 22 Mar 2023 11:25:35 -0300 >Subject: [PATCH] Bug 33306: Add embed header parameter to agreements api > definition > >To test: >1. Enable ERMModule and add an agreement >2. When trying to list agreements, you should get an error >3. Apply patch >4. Error is now gone >--- > 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..2a6965601a 100644 >--- a/api/v1/swagger/paths/erm_agreements.yaml >+++ b/api/v1/swagger/paths/erm_agreements.yaml >@@ -66,6 +66,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: >+ - user_roles >+ collectionFormat: csv > responses: > 200: > description: A list of agreement >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33306
: 148557