feat: Implement get project by ID Route #25
@ -1,6 +1,6 @@
|
||||
POST https://keycloak.szut.dev/auth/realms/szut/protocol/openid-connect/token
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
grant_type=password&client_id=employee-management-service&username=user&password=test
|
||||
|
||||
POST https://keycloak.szut.dev/auth/realms/szut/protocol/openid-connect/token
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
grant_type=password&client_id=employee-management-service&username=user&password=test
|
||||
|
||||
> {% client.global.set("auth_token", response.body.access_token); %}
|
15
requests/getProject.http
Normal file
15
requests/getProject.http
Normal 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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user