-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.http
67 lines (46 loc) · 1.75 KB
/
app.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
61
62
63
64
65
66
67
POST http://localhost:3000/register/
Content-Type: application/json
{
"username": "sherlock_holems",
"password": "sherlocked",
"name": "Sherlok Holmes",
"gender": "male"
}
###
POST http://localhost:3000/login/
Content-Type: application/json
{
"username": "sherlock_holems",
"password": "sherlocked"
}
###
GET http://localhost:3000/user/tweets/feed/
Authorization: BEARER eyJhbGciOiJIUzI1NiJ9.c2hlcmxvY2tfaG9sZW1z.Nja89z9T43irl2jTQD1zRx1iqUtD2oPHhj5qHjxN2Qk
###
GET http://localhost:3000/user/following/
Authorization: BEARER eyJhbGciOiJIUzI1NiJ9.c2hlcmxvY2tfaG9sZW1z.Nja89z9T43irl2jTQD1zRx1iqUtD2oPHhj5qHjxN2Qk
###
GET http://localhost:3000/user/followers/
Authorization: BEARER eyJhbGciOiJIUzI1NiJ9.c2hlcmxvY2tfaG9sZW1z.Nja89z9T43irl2jTQD1zRx1iqUtD2oPHhj5qHjxN2Qk
###
GET http://localhost:3000/tweets/1/
Authorization: BEARER eyJhbGciOiJIUzI1NiJ9.c2hlcmxvY2tfaG9sZW1z.Nja89z9T43irl2jTQD1zRx1iqUtD2oPHhj5qHjxN2Qk
###
GET http://localhost:3000/tweets/1/likes
Authorization: BEARER eyJhbGciOiJIUzI1NiJ9.c2hlcmxvY2tfaG9sZW1z.Nja89z9T43irl2jTQD1zRx1iqUtD2oPHhj5qHjxN2Qk
###
GET http://localhost:3000/tweets/3/replies
Authorization: BEARER eyJhbGciOiJIUzI1NiJ9.c2hlcmxvY2tfaG9sZW1z.Nja89z9T43irl2jTQD1zRx1iqUtD2oPHhj5qHjxN2Qk
###
GET http://localhost:3000/user/tweets
Authorization: BEARER eyJhbGciOiJIUzI1NiJ9.c2hlcmxvY2tfaG9sZW1z.Nja89z9T43irl2jTQD1zRx1iqUtD2oPHhj5qHjxN2Qk
###
POST http://localhost:3000/user/tweets
Authorization: BEARER eyJhbGciOiJIUzI1NiJ9.c2hlcmxvY2tfaG9sZW1z.Nja89z9T43irl2jTQD1zRx1iqUtD2oPHhj5qHjxN2Qk
Content-Type: application/json
{
"tweet": "The game Mrs.Hudson is on!"
}
###
DELETE http://localhost:3000/tweets/19/
Authorization: BEARER eyJhbGciOiJIUzI1NiJ9.c2hlcmxvY2tfaG9sZW1z.Nja89z9T43irl2jTQD1zRx1iqUtD2oPHhj5qHjxN2Qk