WIP
Some checks failed
Quality Check / Tests (pull_request) Successful in 59s
Quality Check / Checkstyle Main (pull_request) Successful in 45s
Build PR / Build and analyze (pull_request) Successful in 1m56s
gitea-sonarqube-bot ERROR

This commit is contained in:
Phan Huy Tran 2024-10-02 12:43:07 +02:00
parent 1e38efaa63
commit 790c2f4bc4
15 changed files with 92 additions and 5 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"
}