From 24be28af1b61223144c80a479bb91dbb750b360b Mon Sep 17 00:00:00 2001
From: Phan Huy Tran
Date: Wed, 26 Feb 2025 09:57:52 +0100
Subject: [PATCH] chore: Add http requests for user
---
backend/requests/user.http | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 backend/requests/user.http
diff --git a/backend/requests/user.http b/backend/requests/user.http
new file mode 100644
index 0000000..3d466be
--- /dev/null
+++ b/backend/requests/user.http
@@ -0,0 +1,18 @@
+### Get User by ID
+GET http://localhost:8080/user/52cc0208-a3bd-4367-94c5-0404b016a003
+Authorization: Bearer {{token}}
+
+### Get current user with token
+GET http://localhost:8080/user
+Authorization: Bearer {{token}}
+
+### Create User
+POST http://localhost:8080/user
+Content-Type: application/json
+Authorization: Bearer {{token}}
+
+{
+ "keycloakId": "52cc0208-a3bd-4367-94c5-0404b016a003",
+ "username": "john.doe"
+}
+