Implement update project route
This commit is contained in:
parent
cbb77cc1ca
commit
dcaeef600d
7 changed files with 128 additions and 10 deletions
|
@ -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}}
|
||||
|
|
15
requests/updateProject.http
Normal file
15
requests/updateProject.http
Normal 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"
|
||||
}
|
Reference in a new issue