From 80988b9ea143e21203ae16ffb5f2e065df65700e 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 Signed-off-by: Pedro Amorim --- 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 762bea6b163..f2cb0b59fd3 100644 --- a/api/v1/swagger/definitions/library.yaml +++ b/api/v1/swagger/definitions/library.yaml @@ -120,6 +120,16 @@ properties: - array - "null" description: The open and close times for a library on any given day + 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 dc8bdbfac00..2d6d938bf0f 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 - library_hours collectionFormat: csv @@ -195,6 +197,8 @@ items: type: string enum: + - cash_registers + - desks - smtp_server - library_hours collectionFormat: csv -- 2.44.0