From 0ef02d5b2e250070fb9d472c03236f2ac7ff24a3 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 0893dfdc24..a9f94b2be6 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 type: diff --git a/api/v1/swagger/definitions/booking_patch.yaml b/api/v1/swagger/definitions/booking_patch.yaml index dee20853e8..bdc8cb659c 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 type: diff --git a/api/v1/swagger/paths/biblios.yaml b/api/v1/swagger/paths/biblios.yaml index 89252ce9f1..3ecf1436ec 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 5a5e2d2d4d..c164ea1435 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 eba7aec901..8232fc7fb3 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