From c41b9dcdff00befdc98bf5d2120b18cc420a9212 Mon Sep 17 00:00:00 2001 From: Alex Sassmannshausen Date: Wed, 23 Aug 2017 14:27:29 +0200 Subject: [PATCH] Bug 11897: Follow up: Add more error conditions. * api/v1/swagger/paths/rotas.json: Add 401, 500 & 503 error conditions. --- api/v1/swagger/paths/rotas.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/api/v1/swagger/paths/rotas.json b/api/v1/swagger/paths/rotas.json index 97196e27ea..3c5ff8e6a6 100644 --- a/api/v1/swagger/paths/rotas.json +++ b/api/v1/swagger/paths/rotas.json @@ -38,6 +38,12 @@ "$ref": "../definitions.json#/error" } }, + "401": { + "description": "Authentication required", + "schema": { + "$ref": "../definitions.json#/error" + } + }, "403": { "description": "Access forbidden", "schema": { @@ -50,6 +56,18 @@ "$ref": "../definitions.json#/error" } } + "500": { + "description": "Internal server error", + "schema": { + "$ref": "../definitions.json#/error" + } + }, + "503": { + "description": "Under maintenance", + "schema": { + "$ref": "../definitions.json#/error" + } + } }, "x-koha-authorization": { "permissions": { -- 2.14.1