From fa074dbba7f0d4f98230311738369f0d64605b71 Mon Sep 17 00:00:00 2001
From: Phan Huy Tran
Date: Wed, 2 Oct 2024 08:31:00 +0200
Subject: [PATCH] Add and refactor http requests
---
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
--
2.45.2