refactor: Add and refactor http requests (!24)
Co-authored-by: Phan Huy Tran <p.tran@neusta.de> Reviewed-on: #24 Reviewed-by: Jan Gleytenhoover <krisellp9@gmail.com> Co-authored-by: Phan Huy Tran <ptran@noreply.localhost> Co-committed-by: Phan Huy Tran <ptran@noreply.localhost>
This commit is contained in:
parent
e5b4e2c012
commit
d047bce4ec
3 changed files with 4 additions and 1 deletions
6
requests/GetBearerToken.http
Normal file
6
requests/GetBearerToken.http
Normal file
|
@ -0,0 +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
|
||||
|
||||
> {% client.global.set("auth_token", response.body.access_token); %}
|
3
requests/getAllProjects.http
Normal file
3
requests/getAllProjects.http
Normal file
|
@ -0,0 +1,3 @@
|
|||
### GET request to example server
|
||||
GET http://localhost:8080/projects
|
||||
Authorization: Bearer {{auth_token}}
|
Reference in a new issue