-
Notifications
You must be signed in to change notification settings - Fork 2
/
http-requests.http
53 lines (40 loc) · 1.01 KB
/
http-requests.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
42
43
44
45
46
47
48
49
50
### POST /register
POST http://127.0.0.1:{{port}}/auth/register
Content-Type: application/json
X-Trace-ID: 1234567890
{
"username": "user",
"password": "User123@",
"email": "[email protected]"
}
### POST /login
POST http://127.0.0.1:{{port}}/auth/login
#POST http://127.0.0.1:{{port}}/login
Content-Type: application/json
X-Trace-ID: 1234567890
{
"username": "admin",
"password": "admin"
}
### GET /profile
GET http://127.0.0.1:{{port}}/auth/profile
Accept: application/json
### PATCH /profile
PATCH http://127.0.0.1:{{port}}/auth/profile
Content-Type: application/json
{
}
### POST /logout
POST http://127.0.0.1:{{port}}/auth/logout
Content-Type: application/json
X-Trace-ID: 1234567890
Cookie: session_id=eyJ1c2VybmFtZSI6InVzZXIxIiwiaWF0IjoxNTY0NjQ0NjQ2LCJleHAiOjE1Nj
{}
### PUT /archive
PUT http://127.0.0.1:{{port}}/auth/archive
Content-Type: application/json
X-Trace-ID: 1234567890
Cookie: session_id=1kab7dUlVs9EaG9lKYziYA%3D%3D;session_token=agK2YEi2P%2Fiv54pntS2FNSpDDbqrAzKJyt4dxH4nrj0%3D;
{
"userID": 1
}