Skip to content

RESTful API N3

annypanny edited this page Nov 29, 2016 · 1 revision

/nodes/destroy/[node_id]

  • It used to delete the nodes on our server.
  • The server return a message.

Method:

DELETE

Example:

GET /nodes/destroy/15/

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

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

after it delete, it would return:

DELETE /nodes/destroy/15/

HTTP 204 No Content
Allow: DELETE, OPTIONS
Content-Type: application/json
Vary: Accept

Clone this wiki locally