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

GET

REST uses the GET verb to retrieve items of the specific resource type. Given that we have a lot of items, it is possible to retrieve a specific resource item and to retrieve all the available resource items. Retrieval of a specific resource item is generally done by providing the id of the item. The following shows the two forms of GET used for retrieval:

  • /api/books: This returns a list of all books in the library
  • /api/books/<id> : This returns information about a particular book in the library

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