Skip to content

RESTful API F7

annypanny edited this page Nov 29, 2016 · 11 revisions

/author/friend_request/reject/[author_id]

  • It used to reject the friend request with sender's author_id.
  • The server would return some message.

Method:

DELETE

Example:

GET /author/friend_request/reject/d2325f9c-09de-492a-83a9-409047905e40

HTTP 405 Method Not Allowed
Allow: DELETE, OPTIONS
Content-Type: application/json
Vary: Accept

{
	"detail": "Method \"GET\" not allowed."
}

after the author delete (reject the friend request), it would return:

DELETE /author/friend_request/reject/d2325f9c-09de-492a-83a9-409047905e40

HTTP 202 Accepted
Allow: DELETE, OPTIONS
Content-Type: application/json
Vary: Accept
Clone this wiki locally