From 3e4bc57fa6eb343fb0621d865a23c23b9dde279c 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 | 31 ++++++++++++++++--- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/api/v1/swagger/definitions/order.json b/api/v1/swagger/definitions/order.json index f3d07d3735..1fd1378867 100644 --- a/api/v1/swagger/definitions/order.json +++ b/api/v1/swagger/definitions/order.json @@ -302,6 +302,10 @@ "null" ] }, + "current_item_level_holds_count": { + "type": "integer", + "description": "Current 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 a0232d84b3..889531827f 100644 --- a/api/v1/swagger/paths/acquisitions_orders.json +++ b/api/v1/swagger/paths/acquisitions_orders.json @@ -50,6 +50,15 @@ }, { "$ref": "../parameters.json#/per_page" + }, + { + "$ref": "../parameters.json#/q_param" + }, + { + "$ref": "../parameters.json#/q_body" + }, + { + "$ref": "../parameters.json#/q_header" } ], "responses": { @@ -100,11 +109,18 @@ }, "x-koha-embed": [ "basket", + "basket.basket_group", + "basket.creator", + "biblio", + "biblio.active_orders+count", + "biblio.holds+count", + "biblio.items+count", + "biblio.suggestions.suggester", "fund", + "current_item_level_holds+count", "invoice", - "subscription", "items", - "biblio" + "subscription" ] }, "post": { @@ -240,11 +256,18 @@ }, "x-koha-embed": [ "basket", + "basket.basket_group", + "basket.creator", + "biblio", + "biblio.active_orders+count", + "biblio.holds+count", + "biblio.items+count", + "biblio.suggestions.suggester", "fund", + "current_item_level_holds+count", "invoice", - "subscription", "items", - "biblio" + "subscription" ] }, "put": { -- 2.25.1