PMT-26: alle mitarbeiter eines #15

Merged
SZUT-Rajbir merged 3 commits from story/PMT-26-alle-mitarbeiter-eines into trunk 2024-10-23 11:21:31 +00:00
Showing only changes of commit 933ac666a8 - Show all commits

View file

@ -77,6 +77,45 @@ components:
qualificationId: qualificationId:
type: integer type: integer
format: int64 format: int64
Employee:
SZUT-Dominik marked this conversation as resolved Outdated

Employee

Employee
type: object
properties:
id:
type: integer
format: int64
lastName:
type: string
firstName:
type: string
street:
type: string
postcode:
maxLength: 5
minLength: 5
type: string
city:
type: string
phone:
type: string
skillSet:
type: array
items:
$ref: '#/components/schemas/Qualification'
Qualification:
SZUT-Dominik marked this conversation as resolved Outdated

Nur Qualification

Nur Qualification
type: object
properties:
skill:
type: string
id:
type: integer
format: int64
ProjectEmployeesDTO:
SZUT-Dominik marked this conversation as resolved Outdated

ProjectEmployeesDTO

ProjectEmployeesDTO
type: object
properties:
employees:
type: array
items:
$ref: "#/components/schemas/Employee"
responses: responses:
Unauthorized: Unauthorized:

nicht benutzt, weg damit.

nicht benutzt, weg damit.
description: "Unauthorized" description: "Unauthorized"
@ -241,3 +280,26 @@ paths:
$ref: "#/components/responses/InternalError" $ref: "#/components/responses/InternalError"
503: 503:
$ref: "#/components/responses/ServiceUnavailable" $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:
content:
application/json:
schema:
$ref: "#/components/schemas/ProjectEmployeesDTO"
description: 'Get a List of all Employees from a specific Project '
404:
$ref: '#/components/responses/NotFound'
500:
$ref: "#/components/responses/InternalError"