-
Notifications
You must be signed in to change notification settings - Fork 0
/
.requests.http
33 lines (26 loc) · 978 Bytes
/
.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
@baseUrl = http://localhost:{{$dotenv APP_PORT}}
@version = v1
@insecurePassword = 12345
@securePassword = xZ395Hsw5L
@jwt = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJmNWUxYjFkYy0wYjU1LTRkODQtOWZlMy1jMzhmZjk0NjQ2MTIiLCJlbWFpbCI6InRlc3RAbWFpbC5jb20iLCJpYXQiOjE2NjY5MDI3MDIsImV4cCI6MTY2OTQ5NDcwMn0.nWNqLPgCbDjSUfzUz-MqcZC11I6s50N9WTFpt6TRCpA
### Get app status
GET {{baseUrl}}/{{version}}/
### Sign Up with new user
POST {{baseUrl}}/{{version}}/auth/sign-up
Content-Type: application/json
{
"email": "[email protected]",
"password": "{{securePassword}}"
}
### Sign In with email and password
POST {{baseUrl}}/{{version}}/auth/sign-in
Content-Type: application/json
{
"email": "[email protected]",
"password": "{{securePassword}}"
}
### Get authorized user details
GET {{baseUrl}}/{{version}}/auth/me
Authorization: Bearer {{jwt}}
### Verify user email with otp
POST {{baseUrl}}/{{version}}/auth/verify-email?otp=64f68d6c-a934-45bb-b83c-74ac34c92030