-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.http
38 lines (31 loc) · 1.21 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
POST http://localhost:3000/register
Content-Type: application/json
{
"username" : "rajmanish23",
"password" : "thisisatest",
"name" : "Raj manish",
"gender" : "male"
}
###
POST http://localhost:3000/login
Content-Type: application/json
{
"username" : "rajmanish23",
"password" : "thisisatest"
}
###
GET http://localhost:3000/user/tweets/feed
Authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo3LCJ1c2VybmFtZSI6InJham1hbmlzaDIzIiwiaWF0IjoxNzI5MTQ4NTM4fQ.uvn6wfitTd7cVXPAjif7xyCNclFTlNrwAMDwMDFCqpU
###
GET http://localhost:3000/user/tweets
Authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJham1hbmlzaDIzIiwiaWF0IjoxNzA5NTI5OTM3fQ.t7ibOW_sIfJgydboFxe1GErRJyq26Hg7ZNelgqGi1DU
###
POST http://localhost:3000/user/tweets
Authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJham1hbmlzaDIzIiwiaWF0IjoxNzA5NTI5OTM3fQ.t7ibOW_sIfJgydboFxe1GErRJyq26Hg7ZNelgqGi1DU
Content-Type: application/json
{
"tweet":"This cloud ide sucks so much!"
}
###
GET http://localhost:3000/tweets/10
Authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InJham1hbmlzaDIzIiwiaWF0IjoxNzI1NTk1MzgzfQ.c3NK5uoK-DABX0HtrWq-0yFEdtWdOOO7-FXIBgjihH8