-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.request.http
60 lines (45 loc) · 1.19 KB
/
api.request.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
51
52
53
54
55
56
57
58
59
60
### Admin Signup
POST http://localhost:3000/user/signup HTTP/1.1
Content-Type: application/json
{
"email": "admin@test.com",
"password": "P@ssword1",
"firstName": "Darrell",
"lastName": "Werner",
"role": "ADMIN"
}
### User Signup
POST http://localhost:3000/user/signup HTTP/1.1
Content-Type: application/json
{
"email": "user@test.com",
"password": "P@ssword1",
"firstName": "Darrell",
"lastName": "Werner",
"role": "USER"
}
### Developer Signup
POST http://localhost:3000/user/signup HTTP/1.1
Content-Type: application/json
{
"email": "developer@test.com",
"password": "P@ssword1",
"firstName": "Asiyah",
"lastName": "Ellwood",
"role": "DEVELOPER"
}
### Good Morning Protected Endpoint (ADMIN)
GET http://localhost:3000/morning HTTP/1.1
Content-Type: application/json
Authorization: Bearer {USER_ACCESS_TOKEN}
{}
### Good Afternoon Protected Endpoint (DEVELOPER)
GET http://localhost:3000/afternoon HTTP/1.1
Content-Type: application/json
Authorization: Bearer {USER_ACCESS_TOKEN}
{}
### Good Afternoon Unprotected Endpoint
GET http://localhost:3000/evening HTTP/1.1
Content-Type: application/json
Authorization: Bearer {USER_ACCESS_TOKEN}
{}