story/PMT-27-mitarbeiter-aus-einem-projekt #17
1 changed files with 36 additions and 0 deletions
36
api/pmt.yml
36
api/pmt.yml
|
@ -210,3 +210,39 @@ paths:
|
|||
type: string
|
||||
500:
|
||||
$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"
|
||||
SZUT-Dominik marked this conversation as resolved
Outdated
|
||||
content:
|
||||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
409:
|
||||
$ref: "#/components/responses/Conflict"
|
||||
500:
|
||||
$ref: "#/components/responses/InternalError"
|
||||
503:
|
||||
$ref: "#/components/responses/ServiceUnavailable"
|
||||
|
||||
|
|
Loading…
Reference in a new issue
$ref