Line ending
This commit is contained in:
parent
25ed7e8759
commit
af090bfeb8
@ -1,6 +1,6 @@
|
|||||||
POST https://keycloak.szut.dev/auth/realms/szut/protocol/openid-connect/token
|
POST https://keycloak.szut.dev/auth/realms/szut/protocol/openid-connect/token
|
||||||
Content-Type: application/x-www-form-urlencoded
|
Content-Type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
grant_type=password&client_id=employee-management-service&username=user&password=test
|
grant_type=password&client_id=employee-management-service&username=user&password=test
|
||||||
|
|
||||||
> {% client.global.set("auth_token", response.body.access_token); %}
|
> {% 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