feat: Implement add employee to project route (SCRUM-2) (!32)
All checks were successful
Quality Check / Tests (push) Successful in 1m8s
Build / Build and analyze (push) Successful in 1m48s
Quality Check / Checkstyle Main (push) Successful in 38s
Release / Release (push) Successful in 45s

Co-authored-by: Phan Huy Tran <p.tran@neusta.de>
Reviewed-on: #32
Reviewed-by: Jan Gleytenhoover <krisellp9@gmail.com>
Co-authored-by: Phan Huy Tran <ptran@noreply.localhost>
Co-committed-by: Phan Huy Tran <ptran@noreply.localhost>
This commit is contained in:
Phan Huy Tran 2024-10-23 08:39:25 +00:00 committed by Jan Gleytenhoover
parent 1e38efaa63
commit 1008278fde
24 changed files with 246 additions and 34 deletions

View file

@ -0,0 +1,2 @@
POST http://localhost:8080/projects/1/employees/312
Authorization: Bearer {{auth_token}}

View file

@ -0,0 +1,15 @@
### GET request to example server
POST http://localhost:8080/projects
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{
"name": "name",
"leading_employee": 1,
"employees": [2, 3],
"contractor": 4,
"contractor_name": "Peter File",
"comment": "goal of project",
"start_date": "01.01.2000",
"planned_end_date": "01.01.2001"
}

View file

@ -0,0 +1,3 @@
### GET request to example server
GET http://localhost:8080/projects
Authorization: Bearer {{auth_token}}

View file

@ -0,0 +1,3 @@
### GET request to example server
GET http://localhost:8080/projects/1
Authorization: Bearer {{auth_token}}

View file

@ -0,0 +1,15 @@
### GET request to example server
PUT http://localhost:8080/projects/1
Authorization: Bearer {{auth_token}}
Content-Type: application/json
{
"name": "newName",
"leading_employee": 2,
"employees": [],
"contractor": 9,
"contractor_name": "New Contractor name",
"comment": "new goal of project",
"start_date": "01.01.2010",
"planned_end_date": "01.01.2021"
}