PMT-37: Alle informationen eines bestimmten Projektes abrufen #19
1 changed files with 50 additions and 0 deletions
50
api/pmt.yml
50
api/pmt.yml
|
@ -27,6 +27,31 @@ components:
|
|||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/ProjectInfo"
|
||||
GetAllProjectInfoDTO:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
format: int64
|
||||
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
|
||||
realEnd:
|
||||
type: string
|
||||
format: date-time
|
||||
CreateProjectDTO:
|
||||
type: object
|
||||
properties:
|
||||
|
@ -213,6 +238,31 @@ paths:
|
|||
$ref: "#/components/responses/ServiceUnavailable"
|
||||
|
||||
/project/{id}:
|
||||
get:
|
||||
operationId: "getProjectInfo"
|
||||
description: "Get a list of all Project Informations"
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
schema:
|
||||
type: integer
|
||||
format: int64
|
||||
required: true
|
||||
responses:
|
||||
200:
|
||||
description: "Project Info recieved"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/GetAllProjectInfoDTO"
|
||||
401:
|
||||
$ref: "#/components/responses/Unauthorized"
|
||||
404:
|
||||
$ref: "#/components/responses/NotFound"
|
||||
500:
|
||||
$ref: "#/components/responses/InternalError"
|
||||
503:
|
||||
$ref: "#/components/responses/ServiceUnavailable"
|
||||
post:
|
||||
operationId: "addEmployee"
|
||||
description: "Adds an employee to a specific Project"
|
||||
|
|
Loading…
Reference in a new issue