From c72cc7945d83133088092255d87f11fe4fc5306e Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 17 Jan 2020 13:05:24 -0300 Subject: [PATCH] Bug 20212: Add more embeddable objects to orders --- api/v1/swagger/definitions/order.json | 4 ++++ api/v1/swagger/paths/acquisitions_orders.json | 18 ++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/api/v1/swagger/definitions/order.json b/api/v1/swagger/definitions/order.json index f3d07d3735..0432f6dda3 100644 --- a/api/v1/swagger/definitions/order.json +++ b/api/v1/swagger/definitions/order.json @@ -302,6 +302,10 @@ "null" ] }, + "holds_count": { + "type": "integer", + "description": "Holds count for associated items" + }, "fund": { "type": [ "object", diff --git a/api/v1/swagger/paths/acquisitions_orders.json b/api/v1/swagger/paths/acquisitions_orders.json index fc614dd49b..779017bd2f 100644 --- a/api/v1/swagger/paths/acquisitions_orders.json +++ b/api/v1/swagger/paths/acquisitions_orders.json @@ -100,11 +100,16 @@ }, "x-koha-embed": [ "basket", + "biblio", + "biblio.active_orders_count", + "biblio.holds_count", + "biblio.items_count", + "biblio.suggestions.suggester", "fund", + "holds_count", "invoice", - "subscription", "items", - "biblio" + "subscription" ] }, "post": { @@ -240,11 +245,16 @@ }, "x-koha-embed": [ "basket", + "biblio", + "biblio.active_orders_count", + "biblio.holds_count", + "biblio.items_count", + "biblio.suggestions.suggester", "fund", + "holds_count", "invoice", - "subscription", "items", - "biblio" + "subscription" ] }, "put": { -- 2.25.0