-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequst.http
More file actions
57 lines (50 loc) · 2 KB
/
requst.http
File metadata and controls
57 lines (50 loc) · 2 KB
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
51
52
53
54
55
56
57
### Get all users
GET http://localhost:8000/api/user/auth/hello
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjBiNTFmZTZjLTZiZTMtNDBmMi1iY2FhLWJiMDk4ZWQ3MDNjNSIsImVtYWlsIjoiZml6YW5tdWhhbW1lZC5maXp6QGdtYWlsLmNvbSIsInJvbGUiOiJ1c2VyIiwiaWF0IjoxNzUzMjg0ODU1LCJleHAiOjE3NTMyODU3NTUsImlzcyI6InVzZXItc2VydmljZS1qd3QifQ.4qX_UW17yWBDGufjkS-aYvvOPNS0W3jhH-x8Tia_Qhc
###
POST http://localhost:8000/api/user/auth/register
Content-Type: application/json
{
"email":"jpvelloor@gmail.com",
"password": "Strong$Password123!",
"username": "jayakumar"
}
###
POST http://localhost:8000/api/user/auth/login
Content-Type: application/json
{
"email": "fizanmuhammed.fizz@gmail.com",
"password": "1234567Qq!",
"role":"user",
"isGoogle":false
}
###
GET http://localhost:4001/api/user/auth/refresh
# Content-Type: application/json
{
"email": "testusedr@example.com",
"password": "Strong$Password123!",
"role":"user"
}
###
GET http://localhost:4001/api/user/auth/logout
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjBiNTFmZTZjLTZiZTMtNDBmMi1iY2FhLWJiMDk4ZWQ3MDNjNSIsImVtYWlsIjoiZml6YW5tdWhhbW1lZC5maXp6QGdtYWlsLmNvbSIsInJvbGUiOiJ1c2VyIiwiaWF0IjoxNzUzMzUwODg0LCJleHAiOjE3NTMzNTE3ODQsImlzcyI6InVzZXItc2VydmljZS1qd3QifQ.bndvYZBYUiX4wSk4IkjxtBMMTT6oszp6bsbOunpdl7w
###
POST http://localhost:4001/api/user/auth/send-otp
Content-Type: application/json
{
"email": "fizanmuhammedfaisal.k@gmail.com"
}
###
POST http://localhost:4001/api/user/auth/verify-otp
Content-Type: application/json
{
"email":"fizanmuhammedfaisal.k@gmail.com",
"otp": "305418"
}
###
GET http://localhost:8000/api/user/auth/refresh
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjBiNTFmZTZjLTZiZTMtNDBmMi1iY2FhLWJiMDk4ZWQ3MDNjNSIsImVtYWlsIjoiZml6YW5tdWhhbW1lZC5maXp6QGdtYWlsLmNvbSIsInJvbGUiOiJ1c2VyIiwiaWF0IjoxNzUzMzUwODg0LCJleHAiOjE3NTMzNTE3ODQsImlzcyI6InVzZXItc2VydmljZS1qd3QifQ.bndvYZBYUiX4wSk4IkjxtBMMTT6oszp6bsbOunpdl7w