DELETE /api/books/<id>

This is the REST API call used to delete a specific book resource. This kind of request doesn't need a body and only requires the book id as part of the URL as shown in the next example.

In this example, we will delete book 2. Note that we do not return anything in response; other REST servers might return the deleted item:

  // Request 
  DELETE "<URL>/api/books/2" 
 
  // Response 
  [] 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset