PMT-27: implement endpoint

This commit is contained in:
Ole Kück 2024-10-22 14:32:09 +02:00
parent 8574e32e34
commit 2f6222ff00
Signed by: SZUT-Ole
GPG key ID: 0A1DF1B37C4A1E4C

View file

@ -210,3 +210,39 @@ paths:
type: string type: string
500: 500:
$ref: "#/components/responses/InternalError" $ref: "#/components/responses/InternalError"
/project/{id}/employee/{employeeId}:
delete:
operationId: "removeEmployeeFromProject"
description: "Removes an employee from a Project"
parameters:
- in: path
name: id
schema:
type: integer
format: int64
required: true
- in: path
name: employeeId
schema:
type: integer
format: int64
required: true
responses:
204:
description: "Deletes the employee from the Project"
401:
$ref: "#/components/responses/Unauthorized"
404:
description: "Employee not found"
content:
text/plain:
schema:
type: string
409:
$ref: "#/components/responses/Conflict"
500:
$ref: "#/components/responses/InternalError"
503:
$ref: "#/components/responses/ServiceUnavailable"