From af3b3108e94bb43369d5a985ea54a2d579a3d3d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=A4ume?= Date: Mon, 7 Oct 2024 15:54:06 +0200 Subject: [PATCH] PMT-16: Add More Errors to Endpoint Specification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dominik Säume --- api/pmt.yml | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/api/pmt.yml b/api/pmt.yml index 9ed8d2d..ba7ebd1 100644 --- a/api/pmt.yml +++ b/api/pmt.yml @@ -77,12 +77,30 @@ components: text/plain: schema: type: string + Conflict: + description: "Conflict" + content: + text/plain: + schema: + type: string + UnprocessableContent: + description: "Unprocessable Content" + content: + text/plain: + schema: + type: string InternalError: description: "Internal Server Error" content: text/plain: schema: type: string + ServiceUnavailable: + description: "Service Unavailable" + content: + text/plain: + schema: + type: string paths: /project: get: @@ -118,5 +136,36 @@ paths: $ref: "#/components/responses/Unauthorized" 404: $ref: "#/components/responses/NotFound" + 409: + $ref: "#/components/responses/Conflict" + 422: + $ref: "#/components/responses/UnprocessableContent" 500: - $ref: "#/components/responses/InternalError" \ No newline at end of file + $ref: "#/components/responses/InternalError" + 503: + $ref: "#/components/responses/ServiceUnavailable" + /project/{id}: + delete: + operationId: "deleteProject" + description: "Delete a specific Project" + parameters: + - in: path + name: id + schema: + type: integer + format: int64 + required: true + responses: + 204: + description: "Deletes a specific Project" + 401: + $ref: "#/components/responses/Unauthorized" + 404: + description: "Project not found" + content: + text/plain: + schema: + type: string + 500: + $ref: "#/components/responses/InternalError" +