diff --git a/backend/requests/blackjack.http b/backend/requests/blackjack.http new file mode 100644 index 0000000..21dd35e --- /dev/null +++ b/backend/requests/blackjack.http @@ -0,0 +1,20 @@ +POST http://localhost:8080/blackjack/start +Authorization: Bearer {{token}} +Content-Type: application/json + +{ + "betAmount": 1.01 +} + +### +POST http://localhost:8080/blackjack/54/hit +Authorization: Bearer {{token}} + +### +POST http://localhost:8080/blackjack/202/stand +Authorization: Bearer {{token}} + +### +GET http://localhost:8080/blackjack/202 +Authorization: Bearer {{token}} + diff --git a/backend/requests/getBearerToken.http b/backend/requests/getBearerToken.http new file mode 100644 index 0000000..791c3a2 --- /dev/null +++ b/backend/requests/getBearerToken.http @@ -0,0 +1,6 @@ +POST http://localhost:9090/realms/LF12/protocol/openid-connect/token +Content-Type: application/x-www-form-urlencoded + +grant_type=password&client_id=lf12&username=lf12_test_user&password=secret&scope=openid + +> {% client.global.set("token", response.body.access_token); %} \ No newline at end of file diff --git a/backend/requests/healthCheck.http b/backend/requests/healthCheck.http new file mode 100644 index 0000000..4be46b5 --- /dev/null +++ b/backend/requests/healthCheck.http @@ -0,0 +1 @@ +GET localhost:8080/health \ No newline at end of file diff --git a/backend/requests/lootboxes.http b/backend/requests/lootboxes.http new file mode 100644 index 0000000..9059570 --- /dev/null +++ b/backend/requests/lootboxes.http @@ -0,0 +1,9 @@ +GET http://localhost:8080/lootboxes +Authorization: Bearer {{token}} +Content-Type: application/json + +### + +POST http://localhost:8080/lootboxes/2 +Authorization: Bearer {{token}} +Content-Type: application/json \ No newline at end of file diff --git a/backend/requests/user.http b/backend/requests/user.http new file mode 100644 index 0000000..b594398 --- /dev/null +++ b/backend/requests/user.http @@ -0,0 +1,27 @@ +### 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}} + +{ + "authentikId": "52cc0208-a3bd-4367-94c5-0404b016a003", + "username": "john.doe" +} + +### Deposit +POST http://localhost:8080/deposit/checkout +Content-Type: application/json +Origin: http://localhost:8080 +Authorization: Bearer {{token}} + +{ + "amount": 60.12 +} \ No newline at end of file diff --git a/backend/requests/webhook.http b/backend/requests/webhook.http new file mode 100644 index 0000000..8fa7f26 --- /dev/null +++ b/backend/requests/webhook.http @@ -0,0 +1 @@ +POST localhost:8080/webhook