refactor: Add and refactor http requests (!24)
All checks were successful
Quality Check / Tests (push) Successful in 1m2s
Quality Check / Checkstyle Main (push) Successful in 49s
Build / Build and analyze (push) Successful in 1m58s
Release / Release (push) Successful in 35s

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:
Phan Huy Tran 2024-10-02 06:34:16 +00:00 committed by Jan Gleytenhoover
parent e5b4e2c012
commit d047bce4ec
3 changed files with 4 additions and 1 deletions

View 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); %}

View file

@ -0,0 +1,3 @@
### GET request to example server
GET http://localhost:8080/projects
Authorization: Bearer {{auth_token}}