From 6c436702133d2a675e2767725debae522a12e4b2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 --- 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 93deb16e31f..d250237b687 100644 --- a/api/v1/swagger/paths/biblios.yaml +++ b/api/v1/swagger/paths/biblios.yaml @@ -346,6 +346,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.25.1