From 6f961647f5c8dff7d2a4ae3c566941369e146c63 Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 25 Jul 2023 07:41:13 +0200 Subject: [PATCH] Update resident_openapi.yaml Return code for "unauthorized" and "bad request" are added --- openapi/resident_openapi.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/openapi/resident_openapi.yaml b/openapi/resident_openapi.yaml index 92ed856..6cbd299 100644 --- a/openapi/resident_openapi.yaml +++ b/openapi/resident_openapi.yaml @@ -28,6 +28,12 @@ paths: type: array items: $ref: '#/components/schemas/Resident' + "401": + description: Unauthorized + content: + text/plain: + schema: + type: string /residents/search: get: operationId: getResidentsSearch @@ -57,6 +63,18 @@ paths: type: array items: $ref: '#/components/schemas/Resident' + "401": + description: Unauthorized + content: + text/plain: + schema: + type: string + "400": + description: Bad request + content: + text/plain: + schema: + type: string components: schemas: SearchField: