-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.http
60 lines (46 loc) · 2.15 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
POST http://localhost:3000/register/
Content-Type: application/json
{
"username": "adam_richh",
"password": "ri",
"name": "Adam Richard",
"gender": "male"
}
###
POST http://localhost:3000/login/
Content-Type: application/json
{
"username":"JoeBiden",
"password":"biden@123"
}
###
GET http://localhost:3000/user/tweets/feed/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjgxMjc4MTc5fQ.ShwHuTX65srfWhNQfEqF4lcOzNxHa3fUVGyOm7J4SSU
###
GET http://localhost:3000/user/following/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjgxMjc4MTc5fQ.ShwHuTX65srfWhNQfEqF4lcOzNxHa3fUVGyOm7J4SSU
###
GET http://localhost:3000/user/followers/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjgxMjc4MTc5fQ.ShwHuTX65srfWhNQfEqF4lcOzNxHa3fUVGyOm7J4SSU
###
GET http://localhost:3000/tweets/2/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjgxMjI2ODI0fQ.CZ7ntbyzwqwgxpDgWI3N0r77P2q8l3TJLov75EYZ4Go
###
GET http://localhost:3000/tweets/7/likes/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjgxMjI2ODI0fQ.CZ7ntbyzwqwgxpDgWI3N0r77P2q8l3TJLov75EYZ4Go
###
GET http://localhost:3000/tweets/8/replies/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjgxMjI2ODI0fQ.CZ7ntbyzwqwgxpDgWI3N0r77P2q8l3TJLov75EYZ4Go
###
GET http://localhost:3000/user/tweets/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjgxMjI2ODI0fQ.CZ7ntbyzwqwgxpDgWI3N0r77P2q8l3TJLov75EYZ4Go
###
POST http://localhost:3000/user/tweets/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjgxMjI2ODI0fQ.CZ7ntbyzwqwgxpDgWI3N0r77P2q8l3TJLov75EYZ4Go
Content-Type: application/json
{
"tweet": "The Mornings..."
}
###
DELETE http://localhost:3000/tweets/14/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkpvZUJpZGVuIiwiaWF0IjoxNjgxMjI2ODI0fQ.CZ7ntbyzwqwgxpDgWI3N0r77P2q8l3TJLov75EYZ4Go