February 2018
Intermediate to advanced
246 pages
6h 3m
English
This form of the GET call will retrieve a single book resource item based on the <id> provided. In general the response's JSON object will be of the defined resource type, though a server might decide to add or remove certain fields based on the service's logic. For our API, we will return all the fields defined in our resource type.
Let's look at an example when we try to retrieve a book resource with id "1":
// Request
GET "<URL>/api/books/1"
// Response
{
"id": "1",
"title": "book1",
"link": "http://link-to-book-1.com"
}
Read now
Unlock full access