PMT-26 Define Endpoint

This commit is contained in:
Rajbir Singh 2024-10-21 22:24:48 +02:00 committed by Dominik Säume
parent 9fe23f3e90
commit 1db0eb9630

View file

@ -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"