/user/register
Method Type : POST
Require
{
name
email
password
mobile
username
}
Return
{
"msg" : "User Registered"
}
/user/login
Method Type : POST
Require
{
email
password
}
Return
{
"msg" : "User Logged In"
}
/user/profile
Method Type: GET
Return
{
name : user's name,
mobile : user's mobile,
email : user's email
}
/user/:id
Method Type : GET
Return
{
name : user's name,
mobile : user's mobile,
email : user's email
}
/user/logout
Method Type : GET
Return
{
"msg" : "User Logged Out"
}
/user/update
Method Type : POST
Optional
{
name
mobile
username
}
Return
{
"msg" : "Profile Updated"
}
/thread/new
Method Type: POST
Require
{
topic
category
thread
}
Return
{
"msg" : "Thread Created"
}
/thread/all
Method Type : GET
Return
Array of All the Threads
/thread/:id
Method Type: GET
/thread/comment
Method Type: POST
Require
{
txt
}
Return
Updated Thread
/thread/like/:id
Method Type: GET
Return
Updated Thread
/thread/dilike/:id
Method Type: GET
Return
Updated Thread