From 04112516e4cbaac6c460de85a5fb321579241eae Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 1 Apr 2024 18:08:13 -0300 Subject: [PATCH] Bug 36482: Allow embedding desks and cash_registers on libraries endpoints Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind --- api/v1/swagger/definitions/library.yaml | 10 ++++++++++ api/v1/swagger/paths/libraries.yaml | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/api/v1/swagger/definitions/library.yaml b/api/v1/swagger/definitions/library.yaml index de010c50d3..cdcd33a86d 100644 --- a/api/v1/swagger/definitions/library.yaml +++ b/api/v1/swagger/definitions/library.yaml @@ -115,6 +115,16 @@ properties: needs_override: type: boolean description: If the library needs an override to act as pickup location for a hold + cash_registers: + type: + - array + - "null" + description: The library's defined cash registers (x-koha-embed) + desks: + type: + - array + - "null" + description: The library's defined desks (x-koha-embed) additionalProperties: false required: - library_id diff --git a/api/v1/swagger/paths/libraries.yaml b/api/v1/swagger/paths/libraries.yaml index 230ee72dcd..30dbaa0d7c 100644 --- a/api/v1/swagger/paths/libraries.yaml +++ b/api/v1/swagger/paths/libraries.yaml @@ -102,6 +102,8 @@ items: type: string enum: + - cash_registers + - desks - smtp_server collectionFormat: csv produces: @@ -194,6 +196,8 @@ items: type: string enum: + - cash_registers + - desks - smtp_server collectionFormat: csv produces: -- 2.30.2