-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.http
36 lines (29 loc) · 938 Bytes
/
test.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
POST http://localhost:3344/users
Content-Type: application/json
{
"name": "teste cripto",
"email": "wander@yopmail.com",
"password": "teste123"
}
###
GET http://localhost:3344/users
###
POST http://localhost:3344/auth/login
Content-Type: application/json
{
"email": "wander@yopmail.com",
"password": "teste123"
}
###
GET http://localhost:3344/games/2
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IndhbmRlckBnbWFpbC5jb20iLCJyb2xlIjoiVVNFUiIsImlhdCI6MTcwMTYyNjQ0NiwiZXhwIjoxNzAxNjI3NDQ2fQ.SbaWPVY9OsUVwZI0dyBPvtX9fwHAMaUdb3HLD_P8VJE
###
POST http://localhost:3344/user-game
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IndhbmRlckB5b3BtYWlsLmNvbSIsInJvbGUiOiJVU0VSIiwiaWF0IjoxNzAzNzA0OTI4LCJleHAiOjE3MDM3MDU5Mjh9.bjWRmi7iu77WeonuFCEFKqWclDCFWH0Vj5UStraPVUw
{
"userId": 6,
"gameId": 2,
"endDate": "2024-01-10 18:58:00.427165+00"
}
###