-
Notifications
You must be signed in to change notification settings - Fork 0
/
rest.http
41 lines (24 loc) · 889 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
37
38
39
40
41
GET http://localhost:3000
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2Nzg3Njk5ODMsImV4cCI6MTY3ODc3MzU4MywiYXVkIjoiNjQwZWE2YjQ3MGMwN2E2YmUwNGM2ODEwIiwiaXNzIjoidGhpbmdzLmNvbSJ9.rE7yYoRUYg00ac9_yPBDBR2aizh4BdAT9chV8otVAc4
####
####
#login Router
POST http://localhost:3000/auth/login
Content-Type: application/json
{
"email": "[email protected]",
"password": "123456"
}
###
POST http://localhost:3000/auth/register
Content-Type: application/json
{
"email": "[email protected]",
"password": "123456"
}
####
POST http://localhost:3000/auth/refresh-token HTTP/1.1
Host: localhost:3000
Content-Type: application/json
{
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2Nzg4MTE2NTcsImV4cCI6MTcxMDM2OTI1NywiYXVkIjoiNjQxMGEyMDkzMDVmMTdiY2RmMzM4ZWZhIiwiaXNzIjoidGhpbmdzLmNvbSJ9.v6lDhBxfy9ovVWajwe17gmPaE0x4dHo02fBkJbu17GU" }