From d047bce4ec44b300c4498c833b9a52a4034d0a93 Mon Sep 17 00:00:00 2001 From: Phan Huy Tran Date: Wed, 2 Oct 2024 06:34:16 +0000 Subject: [PATCH] refactor: Add and refactor http requests (!24) Co-authored-by: Phan Huy Tran Reviewed-on: https://git.kjan.de/jank/LF8/pulls/24 Reviewed-by: Jan Gleytenhoover Co-authored-by: Phan Huy Tran Co-committed-by: Phan Huy Tran --- Readme.md | 2 +- GetBearerToken.http => requests/GetBearerToken.http | 0 requests/getAllProjects.http | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) rename GetBearerToken.http => requests/GetBearerToken.http (100%) create mode 100644 requests/getAllProjects.http diff --git a/Readme.md b/Readme.md index 8774ce3..1e0c8d8 100644 --- a/Readme.md +++ b/Readme.md @@ -62,7 +62,7 @@ docker compose up # Keycloak ### Keycloak Token -1. Auf der Projektebene [GetBearerToken.http](GetBearerToken.http) öffnen. +1. Auf der Projektebene [GetBearerToken.http](requests/GetBearerToken.http) öffnen. 2. Neben der Request auf den grünen Pfeil drücken 3. Aus dem Reponse das access_token kopieren diff --git a/GetBearerToken.http b/requests/GetBearerToken.http similarity index 100% rename from GetBearerToken.http rename to requests/GetBearerToken.http diff --git a/requests/getAllProjects.http b/requests/getAllProjects.http new file mode 100644 index 0000000..b56f68d --- /dev/null +++ b/requests/getAllProjects.http @@ -0,0 +1,3 @@ +### GET request to example server +GET http://localhost:8080/projects +Authorization: Bearer {{auth_token}} \ No newline at end of file