/users -> post
{
name,
email,
mobile,
password
}
/users/:userId -> put
{
name,
email,
mobile,
password
}
/login -> post
{
email,
password
}
/users/refreshtoken -> get
provide a Refresh token as a Bearer Token in Authorization Header
/posts -> Post
provide a Auth token as a Bearer Token in Authorization Header
{
message
}
/posts/:postId -> Post
provide a Auth token as a Bearer Token in Authorization Header
{
message
}
/posts -> delete
provide a Refresh token as a Bearer Token in Authorization Header
Comment
/users/comment/:postId -> post
provide a Refresh token as a Bearer Token in Authorization Header
{
comments:{
sentAt
sentBy: id of the users
liked: []
}
}
Update Comment
/users/comment/:postId/:commentId -> put
provide a Refresh token as a Bearer Token in Authorization Header
You can set All the values or one
{
comments:{
sentAt
sentBy: id of the users
liked: []
}
}