Skip to content

RESTful API F4

annypanny edited this page Nov 29, 2016 · 5 revisions

/author/friends/unfriend/[author_id]

  • It used to remove a friend so our status is not friend anymore.
  • The server return a message.

Method:

DELETE

Example:

GET /author/friends/unfriend/eb572e7b-7856-468b-bfdf-9b6388f9165c

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

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

after the author delete, it would return:

DELETE /author/friends/unfriend/eb572e7b-7856-468b-bfdf-9b6388f9165c

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

Clone this wiki locally