From f941cad4b9c0d4247ddf0f8d315e02d41cdf369c Mon Sep 17 00:00:00 2001 From: Rajbir Singh Date: Mon, 21 Oct 2024 22:24:48 +0200 Subject: [PATCH] PMT-26 Define Endpoint --- api/pmt.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/api/pmt.yml b/api/pmt.yml index e2318d9..77da7f4 100644 --- a/api/pmt.yml +++ b/api/pmt.yml @@ -78,6 +78,8 @@ components: type: integer format: int64 responses: + Ok: + description: "OK" Unauthorized: description: "Unauthorized" NotFound: @@ -210,3 +212,24 @@ paths: type: string 500: $ref: "#/components/responses/InternalError" + + /project/{id}/employees: + get: + description: "getAllEmployees" + operationId: "Get a List of all Employees from a specific Project" + parameters: + - in: path + name: id + schema: + type: integer + format: int64 + required: true + responses: + 200: + $ref: '#/components/responses/Ok' + 404: + $ref: '#/components/responses/NotFound' + 500: + $ref: "#/components/responses/InternalError" + +