PMT-26 Define Endpoint

This commit is contained in:
Rajbir Singh 2024-10-21 22:24:48 +02:00
parent 8574e32e34
commit f941cad4b9

View file

@ -78,6 +78,8 @@ components:
type: integer type: integer
format: int64 format: int64
responses: responses:
Ok:
description: "OK"
Unauthorized: Unauthorized:
description: "Unauthorized" description: "Unauthorized"
NotFound: NotFound:
@ -210,3 +212,24 @@ paths:
type: string type: string
500: 500:
$ref: "#/components/responses/InternalError" $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"