From 45aa6856ade82c722873e494dac832f44ffdca48 Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Thu, 10 Apr 2025 15:19:11 +0000 Subject: [PATCH] Bug 37829: API specification changes --- api/v1/swagger/definitions/booking.yaml | 6 ++++++ api/v1/swagger/definitions/booking_patch.yaml | 6 ++++++ api/v1/swagger/paths/biblios.yaml | 1 + api/v1/swagger/paths/bookings.yaml | 1 + api/v1/swagger/paths/extended_attribute_types.yaml | 1 + 5 files changed, 15 insertions(+) diff --git a/api/v1/swagger/definitions/booking.yaml b/api/v1/swagger/definitions/booking.yaml index 42f3b0ff8c3..f3796e70071 100644 --- a/api/v1/swagger/definitions/booking.yaml +++ b/api/v1/swagger/definitions/booking.yaml @@ -24,6 +24,12 @@ properties: description: Start date and time of this booking format: date-time type: string + extended_attributes: + description: Related additional field values + type: + - array + items: + $ref: extended_attribute_value.yaml item_id: description: Internal item identifier for specific item bookings type: diff --git a/api/v1/swagger/definitions/booking_patch.yaml b/api/v1/swagger/definitions/booking_patch.yaml index c1d0fbe00c3..e2cdcf181a3 100644 --- a/api/v1/swagger/definitions/booking_patch.yaml +++ b/api/v1/swagger/definitions/booking_patch.yaml @@ -22,6 +22,12 @@ properties: description: Start date and time of this booking format: date-time type: string + extended_attributes: + description: Related additional field values + type: + - array + items: + $ref: extended_attribute_value.yaml item_id: description: Internal item identifier for specific item bookings type: diff --git a/api/v1/swagger/paths/biblios.yaml b/api/v1/swagger/paths/biblios.yaml index 18120c5dd98..914bbf22378 100644 --- a/api/v1/swagger/paths/biblios.yaml +++ b/api/v1/swagger/paths/biblios.yaml @@ -319,6 +319,7 @@ - item - patron - pickup_library + - extended_attributes collectionFormat: csv consumes: - application/json diff --git a/api/v1/swagger/paths/bookings.yaml b/api/v1/swagger/paths/bookings.yaml index 5a5e2d2d4d1..c164ea14356 100644 --- a/api/v1/swagger/paths/bookings.yaml +++ b/api/v1/swagger/paths/bookings.yaml @@ -49,6 +49,7 @@ - item.checkout - patron - pickup_library + - extended_attributes collectionFormat: csv produces: - application/json diff --git a/api/v1/swagger/paths/extended_attribute_types.yaml b/api/v1/swagger/paths/extended_attribute_types.yaml index 2324519b6fd..dc4a76bfe02 100644 --- a/api/v1/swagger/paths/extended_attribute_types.yaml +++ b/api/v1/swagger/paths/extended_attribute_types.yaml @@ -15,6 +15,7 @@ type: string enum: - basket + - booking - credit - debit - invoice -- 2.39.5