December 2018
Beginner to intermediate
796 pages
19h 54m
English
Now, we will make HTTP GET requests that target a single Toy instance. We will select one of the toys from the previous list and we will compose an HTTP request to retrieve only the chosen toy. For example, in the previous list, the first toy has a pk value equal to 3 because the results are ordered by the toy's name in ascending order. Run the following command to retrieve this toy. Use the pk value you have retrieved in the previous command for the first toy, as the pk number might be different if you execute the sample code or the commands more than once or you make changes to the toys_toy table. In this case, you don't have to enter an ending slash (/) because /toys/3/ won't match ...
Read now
Unlock full access