-
Notifications
You must be signed in to change notification settings - Fork 57
Detailed API Documentation
Subhrodip Mohanta edited this page Jun 26, 2021
·
7 revisions
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Authenticate the User and provides them with a JWT token as a response
curl -X GET "http://localhost:8082/users/%40first"
{
"id": "30761418-70e6-46dc-8af5-17670e78f293",
"username": "first",
"name": "Nice Name",
"avatar": "URL://updated-picture.png",
"bio": "Updated Bio",
"followerCount": 0,
"followingCount": 0,
"verified": false
}
Get details of a given user by username
curl -X GET "http://localhost:8082/users/30761418-70e6-46dc-8af5-17670e78f293"
{
"id": "30761418-70e6-46dc-8af5-17670e78f293",
"username": "first",
"name": "Nice Name",
"avatar": "URL://updated-picture.png",
"bio": "Updated Bio",
"followerCount": 0,
"followingCount": 0,
"verified": false
}
Get details of a given user by userid
{
"username": "first",
"name": "Nice Name",
"bio": "Bio of 240 characters",
"avatar": "URL://picture.png"
}
{
"id": "30761418-70e6-46dc-8af5-17670e78f293",
"username": "first",
"name": "Nice Name",
"avatar": "URL://picture.png",
"bio": "Bio of 240 characters",
"followerCount": 0,
"followingCount": 0,
"verified": false
}
Create a new user
{
"id": "30761418-70e6-46dc-8af5-17670e78f293",
"username": "first",
"name": "Nice Name",
"avatar": "URL://updated-picture.png",
"bio": "Updated Bio"
}
{
"id": "30761418-70e6-46dc-8af5-17670e78f293",
"username": "first",
"name": "Nice Name",
"avatar": "URL://updated-picture.png",
"bio": "Updated Bio",
"followerCount": 0,
"followingCount": 0,
"verified": false
}
Update bio/name/image etc of an user
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Follow the given user
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Un-follow the given user
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Get a list of all followers of this user
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Get a list of all following of this user
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Get the list of all posts
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Get Details of a post
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Create a new post
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Delete a given post
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Like the given post
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Un-like the given post
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
Top hashtags (default top 10)
{
"username": "username",
"password": "Password"
}
{
"jwt": "JSON.Web.Token"
}
All posts of this given hashtag
02. How to Contribute (needs splitting)
- Installation
-
Project Configuration
-
IDE Instructions
-
Milestones and Versioning
Β Β 10.1 Request and Response Models
Β Β 10.2 Detailed API Documentation
- How to Test Endpoints
-
Working with issues
-
Reviewing pull requests
- Roadmap
- Recognizing contributors