O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 
  [] 

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required