From 74ac3ae3f2d1d6d84f5d5a304187b2aae59a60cd Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Fri, 27 Mar 2020 02:48:28 +0000 Subject: [PATCH] Bug 15522: (follow-up) Add missing http return codes to api spec --- api/v1/swagger/paths/circulation-rules.json | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/api/v1/swagger/paths/circulation-rules.json b/api/v1/swagger/paths/circulation-rules.json index 314b706b80..c056a19880 100644 --- a/api/v1/swagger/paths/circulation-rules.json +++ b/api/v1/swagger/paths/circulation-rules.json @@ -17,6 +17,12 @@ } } }, + "400": { + "description": "Bad request", + "schema": { + "$ref": "../definitions.json#/error" + } + }, "403": { "description": "Access forbidden", "schema": { @@ -28,6 +34,12 @@ "schema": { "$ref": "../definitions.json#/error" } + }, + "503": { + "description": "Under maintenance", + "schema": { + "$ref": "../definitions.json#/error" + } } } }, @@ -57,6 +69,12 @@ "type": "string" } }, + "400": { + "description": "Bad request", + "schema": { + "$ref": "../definitions.json#/error" + } + }, "401": { "description": "Authentication required", "schema": { @@ -74,6 +92,12 @@ "schema": { "$ref": "../definitions.json#/error" } + }, + "503": { + "description": "Under maintenance", + "schema": { + "$ref": "../definitions.json#/error" + } } }, "x-koha-authorization": { @@ -101,6 +125,12 @@ } } }, + "400": { + "description": "Bad request", + "schema": { + "$ref": "../definitions.json#/error" + } + }, "403": { "description": "Access forbidden", "schema": { @@ -112,6 +142,12 @@ "schema": { "$ref": "../definitions.json#/error" } + }, + "503": { + "description": "Under maintenance", + "schema": { + "$ref": "../definitions.json#/error" + } } } } -- 2.17.1