Bugzilla – Attachment 153099 Details for
Bug 34211
Add +strings for GET /api/v1/biblios/:biblio_id/items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34211: Add +strings for GET /api/v1/biblios/:biblio_id/items
Bug-34211-Add-strings-for-GET-apiv1bibliosbiblioid.patch (text/plain), 1.39 KB, created by
Lucas Gass (lukeg)
on 2023-07-06 15:07:29 UTC
(
hide
)
Description:
Bug 34211: Add +strings for GET /api/v1/biblios/:biblio_id/items
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-07-06 15:07:29 UTC
Size:
1.39 KB
patch
obsolete
>From aba5f3fd81981b8876c46d598bd2ae0ead36e152 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 6 Jul 2023 14:08:26 +0200 >Subject: [PATCH] Bug 34211: Add +strings for GET > /api/v1/biblios/:biblio_id/items > >Allow to embed stringified version of attributes for the "Get items for >a biblio" endpoint > >Test plan: >curl -u koha:koha --request GET 'http://localhost:8081/api/v1/biblios/47/items' --header "Content-Type: application/json" --header "x-koha-embed: +strings" | jq > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > api/v1/swagger/paths/biblios.yaml | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/api/v1/swagger/paths/biblios.yaml b/api/v1/swagger/paths/biblios.yaml >index fa98f152a5..5b58c3c9c6 100644 >--- a/api/v1/swagger/paths/biblios.yaml >+++ b/api/v1/swagger/paths/biblios.yaml >@@ -348,6 +348,16 @@ > summary: Get items for a biblio > parameters: > - $ref: "../swagger.yaml#/parameters/biblio_id_pp" >+ - name: x-koha-embed >+ in: header >+ required: false >+ description: Embed list sent as a request header >+ type: array >+ items: >+ type: string >+ enum: >+ - +strings >+ collectionFormat: csv > - $ref: "../swagger.yaml#/parameters/match" > - $ref: "../swagger.yaml#/parameters/order_by" > - $ref: "../swagger.yaml#/parameters/page" >-- >2.30.2
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 34211
:
153092
|
153093
|
153099
|
153405
|
153406