From 1db0eb9630affda0b7bba893fdab7d4b1fe93ec4 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 0e803c0..8ced600 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: @@ -241,3 +243,24 @@ paths: $ref: "#/components/responses/InternalError" 503: $ref: "#/components/responses/ServiceUnavailable" + + /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" + +