PMT-43: die Projekt Daten aktualisieren #16

Merged
SZUT-Dominik merged 7 commits from story/PMT-43-die-projektdaten-aktualisieren into trunk 2024-10-23 11:38:44 +00:00
Showing only changes of commit 0fb0e77b91 - Show all commits

View file

@ -46,6 +46,28 @@ components:
plannedEnd:
type: string
format: date-time
UpdateProjectDTO:
type: object
properties:
name:
type: string
goal:
type: string
customerId:
type: integer
format: int64
administratorId:
type: integer
format: int64
start:
type: string
format: date-time
plannedEnd:
type: string
format: date-time
end:
type: string
format: date-time
CreatedProjectDTO:
type: object
properties:
@ -193,7 +215,6 @@ paths:
503:
$ref: "#/components/responses/ServiceUnavailable"
/project/{id}:
post:
operationId: "addEmployee"
@ -225,7 +246,36 @@ paths:
$ref: "#/components/responses/InternalError"
503:
$ref: "#/components/responses/ServiceUnavailable"
put:
operationId: "updateProject"
description: "Updates a project"
parameters:
- in: path
name: id
schema:
type: integer
format: int64
required: true
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateProjectDTO"
responses:
204:
description: "Project updated successfully"
401:
$ref: "#/components/responses/Unauthorized"
404:
$ref: "#/components/responses/NotFound"
409:
$ref: "#/components/responses/Conflict"
422:
$ref: "#/components/responses/UnprocessableContent"
500:
$ref: "#/components/responses/InternalError"
503:
$ref: "#/components/responses/ServiceUnavailable"
delete:
operationId: "deleteProject"
description: "Delete a specific Project"