Skip to main content

Followers


Follow a user

POST /user/follow/$username$
Responses
http codecontent-typeresponse
200application/json{"statusCode":"200","message":"User {username} followed","data":"{username}"}
404application/json{"statusCode":"404","message":"Source not found we can't follow this user","data":"null"}
404application/json{"statusCode":"404","message":""Destination not found we can't follow this user","data":"true"}
409application/json{"statusCode":"409","message":"You already followed this user","data":"null"}
400application/json{"statusCode":"400","message":"You cannot follow yourself","data":"null"}

Unfollow a user

DELETE /user/unfollow/$username$
Responses
http codecontent-typeresponse
200application/json{"statusCode":"200","message":"User {username} unfollowed","data":"{username}"}
404application/json{"statusCode":"404","message":"Source not found we can't unfollow this user","data":"null"}
404application/json{"statusCode":"404","message":""Destination not found we can't unfollow this user","data":"null"}
409application/json{"statusCode":"409","message":"You are not follow this user this user","data":"null"}