From 1807def5d5cec63282bd6ec6621905803d94ecf2 Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Wed, 22 Jan 2025 12:51:47 +0200 Subject: [PATCH 1/2] Bug 36135: Add ability to fetch patron info via API holds endpoint --- api/v1/swagger/definitions/hold.yaml | 5 +++++ api/v1/swagger/paths/holds.yaml | 1 + 2 files changed, 6 insertions(+) diff --git a/api/v1/swagger/definitions/hold.yaml b/api/v1/swagger/definitions/hold.yaml index 2ba3367e04..25d7754425 100644 --- a/api/v1/swagger/definitions/hold.yaml +++ b/api/v1/swagger/definitions/hold.yaml @@ -128,5 +128,10 @@ properties: - object - "null" description: Pickup library + patron: + type: + - object + - "null" + description: Patron for hold additionalProperties: false diff --git a/api/v1/swagger/paths/holds.yaml b/api/v1/swagger/paths/holds.yaml index 48fe6e31e0..ad2002508c 100644 --- a/api/v1/swagger/paths/holds.yaml +++ b/api/v1/swagger/paths/holds.yaml @@ -105,6 +105,7 @@ - biblio - pickup_library - item + - patron collectionFormat: csv produces: - application/json -- 2.34.1