-
Notifications
You must be signed in to change notification settings - Fork 2
RESTful API F10
annypanny edited this page Nov 29, 2016
·
4 revisions
/friendrequest
- It used to send and receive friend request.
- It would show the friend request we send to other node, and other node's friend request to us would also shows in here.
Method:
POST
Example:
GET /friendrequest
HTTP 405 Method Not Allowed
Allow: POST, OPTIONS
Content-Type: application/json
Vary: Accept
{
"detail": "Method \"GET\" not allowed."
}
after the author send the request, it would return:
POST /friendrequest
HTTP 200 OK
Allow: POST, OPTIONS
Content-Type: application/json
Vary: Accept
"Friend Request received"