-
Notifications
You must be signed in to change notification settings - Fork 0
/
rest.http
36 lines (28 loc) · 934 Bytes
/
rest.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
36
GET http://localhost:3000/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MjAxNzcxMDAsImV4cCI6MTcyMDE3NzExNSwiYXVkIjoiNjY4N2JiZDFmYjcwMTkwMzY2ZjNjY2EwIiwiaXNzIjoidGVzdCJ9.h_YX6_O5lOVGfyJQ6MIVQeZllt1vo8_flTOlqxUaUXc
# login
POST http://localhost:3000/auth/login
Content-Type: application/json
{
"email": "125@gmail.com",
"password": "1234"
}
# register
POST http://localhost:3000/auth/register
Content-Type: application/json
{
"email": "125@gmail.com",
"password": "1234"
}
# refresh-token
POST http://localhost:3000/auth/refresh-token
Content-Type: application/json
{
"refreshToken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MjA0MjI0NDAsImV4cCI6MTc1MTk4MDA0MCwiYXVkIjoiNjY4N2JiZDFmYjcwMTkwMzY2ZjNjY2EwIiwiaXNzIjoidGVzdCJ9.7_YTHrwJduA0PA28iRiyzINShgITHjnYYl066EevSms"
}
# logout
DELETE http://localhost:3000/auth/logout
Content-Type: application/json
{
"refreshToken":""
}