From 33ffd93947c463408f60d1085acd4c989f1c9df8 Mon Sep 17 00:00:00 2001
From: Ere Maijala <ere.maijala@helsinki.fi>
Date: Wed, 19 Feb 2020 09:49:49 +0200
Subject: [PATCH] Bug 20447: Add holding_id to REST API item definition
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Allows items to be properly returned, including the holding_id field.

Rebased-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Michal Denar <black23@gmail.com>
---
 api/v1/swagger/definitions/item.json | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/api/v1/swagger/definitions/item.json b/api/v1/swagger/definitions/item.json
index 14c110714e..2600ecfb4c 100644
--- a/api/v1/swagger/definitions/item.json
+++ b/api/v1/swagger/definitions/item.json
@@ -9,6 +9,10 @@
       "type": "integer",
       "description": "Internal identifier for the parent bibliographic record"
     },
+    "holding_id": {
+      "type": ["integer", "null"],
+      "description": "Internal identifier for the parent holdings record"
+    },
     "external_id": {
       "type": ["string", "null"],
       "description": "The item's barcode"
-- 
2.25.1