From 1ac153706574527236b7d7753b25a65190f54b1e Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 30 Apr 2025 15:10:40 -0300 Subject: [PATCH] Bug 32266: Add more embed options to orders and baskets This patch adds the ability to embed: Orders: * basket.vendor * basket.authorizer+strings * claims+count Baskets: * vendor * authorizer+strings --- api/v1/swagger/definitions/basket.yaml | 5 +++++ api/v1/swagger/paths/acquisitions_baskets.yaml | 2 ++ api/v1/swagger/paths/acquisitions_orders.yaml | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/api/v1/swagger/definitions/basket.yaml b/api/v1/swagger/definitions/basket.yaml index af08323abd8..d45debf935a 100644 --- a/api/v1/swagger/definitions/basket.yaml +++ b/api/v1/swagger/definitions/basket.yaml @@ -89,4 +89,9 @@ properties: - integer - "null" description: The number of days the basket is late (x-koha-embed) + authorizer: + type: + - object + - "null" + description: The authorizing patron (x-koha-embed) additionalProperties: false diff --git a/api/v1/swagger/paths/acquisitions_baskets.yaml b/api/v1/swagger/paths/acquisitions_baskets.yaml index d3fb3e8dcd9..6becd0df874 100644 --- a/api/v1/swagger/paths/acquisitions_baskets.yaml +++ b/api/v1/swagger/paths/acquisitions_baskets.yaml @@ -22,9 +22,11 @@ items: type: string enum: + - authorizer+strings - basket_group - creator - late_since_days + - vendor collectionFormat: csv produces: - application/json diff --git a/api/v1/swagger/paths/acquisitions_orders.yaml b/api/v1/swagger/paths/acquisitions_orders.yaml index 36a5e5df86e..05414292729 100644 --- a/api/v1/swagger/paths/acquisitions_orders.yaml +++ b/api/v1/swagger/paths/acquisitions_orders.yaml @@ -73,14 +73,17 @@ type: string enum: - basket + - basket.authorizer+strings - basket.basket_group - basket.creator - basket.late_since_days + - basket.vendor - biblio - biblio.uncancelled_orders+count - biblio.holds+count - biblio.items+count - biblio.suggestions.suggester + - claims+count - creator - fund - fund.budget @@ -201,14 +204,17 @@ type: string enum: - basket + - basket.authorizer+strings - basket.basket_group - basket.creator - basket.late_since_days + - basket.vendor - biblio - biblio.uncancelled_orders+count - biblio.holds+count - biblio.items+count - biblio.suggestions.suggester + - claims+count - fund - current_item_level_holds+count - invoice -- 2.49.0