-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.http
77 lines (46 loc) · 2.27 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
68
69
70
71
72
73
74
75
76
77
POST http://localhost:3000/register/ HTTP/1.1
Content-Type: application/json
{
"username": "adam_richard",
"password": "richard_567",
"name": "Adam Richard",
"gender": "male"
}
###
POST http://localhost:3000/login/ HTTP/1.1
Content-Type: application/json
{
"username":"JoeBiden",
"password":"biden@123"
}
###
GET http://localhost:3000/user/tweets/feed/ HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjY5MjIyODg1fQ.S0iXcoDYBtOkmVM5HghCghsJ4D-P-QJqLZhgFPfAcAw
###
GET http://localhost:3000/user/following/ HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjY5MjIyODg1fQ.S0iXcoDYBtOkmVM5HghCghsJ4D-P-QJqLZhgFPfAcAw
###
GET http://localhost:3000/user/followers/ HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjY5MjIyODg1fQ.S0iXcoDYBtOkmVM5HghCghsJ4D-P-QJqLZhgFPfAcAw
###
GET http://localhost:3000/tweets/7 HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjY5MjIyODg1fQ.S0iXcoDYBtOkmVM5HghCghsJ4D-P-QJqLZhgFPfAcAw
###
GET http://localhost:3000/tweets/8/likes/ HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjY5MjIyODg1fQ.S0iXcoDYBtOkmVM5HghCghsJ4D-P-QJqLZhgFPfAcAw
###
GET http://localhost:3000/tweets/2/replies HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjY5MjIyODg1fQ.S0iXcoDYBtOkmVM5HghCghsJ4D-P-QJqLZhgFPfAcAw
###
GET http://localhost:3000/user/tweets/ HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjY5MjIyODg1fQ.S0iXcoDYBtOkmVM5HghCghsJ4D-P-QJqLZhgFPfAcAw
###
POST http://localhost:3000/user/tweets/ HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjY5MjIyODg1fQ.S0iXcoDYBtOkmVM5HghCghsJ4D-P-QJqLZhgFPfAcAw
{
"tweet": "The Mornings..."
}
###
DELETE http://localhost:3000/tweets/4 HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjY5MjIyODg1fQ.S0iXcoDYBtOkmVM5HghCghsJ4D-P-QJqLZhgFPfAcAw