From 87eac9699c06c2ab5b91bbea9a85bbf8bf4ff7bd Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Wed, 22 Jan 2025 12:51:47 +0200 Subject: [PATCH 12/14] 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