-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.http
43 lines (32 loc) · 1.02 KB
/
api.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
@hostname = http://localhost:5000/api/v1
### Test connection
GET {{hostname}}
### Register Seeder
POST {{hostname}}/auth/register
Content-Type: application/json
{
"email": "[email protected]",
"password": "123456",
"username" : "test"
}
### Login
POST {{hostname}}/auth/login?device=android
Content-Type: application/json
{
"email": "[email protected]",
"password": "123456"
}
### Logout
DELETE {{hostname}}/auth/logout
### otp
POST {{hostname}}/auth/otp
Content-Type: application/json
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYyZmVlNThmLTY3OTgtNDBjNi1hZjYwLWFlZTk2Y2QxNzEwOSIsImlhdCI6MTcwNTM4MTc3NCwiZXhwIjoxNzA1NDY4MTc0fQ.sTRpV2YMsqE5ZTkEnfJB22NUz1PUiEsdfFfqhob6pYM",
"otp": "745682",
"device": "android"
}
### resend otp
GET {{hostname}}/auth/resendotp?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYyZmVlNThmLTY3OTgtNDBjNi1hZjYwLWFlZTk2Y2QxNzEwOSIsImlhdCI6MTcwNTM4MTc3NCwiZXhwIjoxNzA1NDY4MTc0fQ.sTRpV2YMsqE5ZTkEnfJB22NUz1PUiEsdfFfqhob6pYM
### test auth
GET {{hostname}}/test_auth