PMT-40 define Endpoint
Some checks failed
Quality Check / Static Analysis (push) Has been cancelled
Quality Check / Testing (push) Has been cancelled
Quality Check / Linting (push) Has been cancelled
Quality Check / Validate OAS (push) Has been cancelled

This commit is contained in:
Rajbir Singh 2024-10-23 14:45:28 +02:00
parent cec89e2766
commit 32b81b5d41

View file

@ -87,6 +87,31 @@ components:
plannedEnd:
type: string
format: date-time
Project:
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
AddEmployeeDTO:
type: object
properties:
@ -135,6 +160,13 @@ components:
type: array
items:
$ref: "#/components/schemas/Employee"
EmployeeProjectsDTO:
type: object
properties:
projects:
type: array
items:
$ref: '#/components/schemas/Project'
responses:
Unauthorized:
description: "Unauthorized"
@ -366,3 +398,25 @@ paths:
$ref: '#/components/responses/NotFound'
500:
$ref: "#/components/responses/InternalError"
/employye/{id}/projects:
get:
description: "getAllProjects"
operationId: "Get a List of all Projects from a specific Employee"
parameters:
- in: path
name: id
schema:
type: integer
format: int64
required: true
responses:
200:
content:
application/json:
schema:
$ref: "#/components/schemas/EmployeeProjectsDTO"
description: 'Get a List of all Projects from a specific Employee'
404:
$ref: '#/components/responses/NotFound'
500:
$ref: '#/components/responses/InternalError'