From d5c6f5b014fedd9988ce0c89e8b3da8743cec5d3 Mon Sep 17 00:00:00 2001 From: Vojtech Cerveny Date: Thu, 31 Oct 2024 12:14:58 +0100 Subject: [PATCH 1/2] fix: change endpoint to internal --- reference/clinic.v1.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/reference/clinic.v1.yaml b/reference/clinic.v1.yaml index 48ed1f2..b8167a6 100644 --- a/reference/clinic.v1.yaml +++ b/reference/clinic.v1.yaml @@ -28,6 +28,7 @@ paths: summary: List Clinics tags: - Clinics + - Internal responses: '200': description: OK From e458caf26458475d3062cd9c4ff7610610610617 Mon Sep 17 00:00:00 2001 From: Vojtech Cerveny Date: Thu, 31 Oct 2024 12:46:27 +0100 Subject: [PATCH 2/2] fix: adding 4xx to POST /v1/clinics --- reference/clinic.v1.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/reference/clinic.v1.yaml b/reference/clinic.v1.yaml index b8167a6..bfc2f55 100644 --- a/reference/clinic.v1.yaml +++ b/reference/clinic.v1.yaml @@ -84,8 +84,22 @@ paths: properties: {} '400': description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '403': description: Forbidden + content: + application/json: + schema: + $ref: '#/components/schemas/Error' '500': description: Internal Server Error requestBody: