Implement update project route

This commit is contained in:
Phan Huy Tran 2024-10-02 10:00:59 +02:00 committed by Phan Huy Tran
parent cbb77cc1ca
commit dcaeef600d
7 changed files with 128 additions and 10 deletions

View file

@ -1,3 +1,3 @@
### GET request to example server
GET http://localhost:8080/projects/2
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"
}