July 2018
Intermediate to advanced
324 pages
8h 14m
English
Now, let's execute another operation on the /quote API such as /quote?type=random. This API will return a random quote on each request. The following is a log of the API execution:
$ curl http://localhost:8000/quote?type=random{"quote": "The only way to get rid of a temptation is to yield to it.", "author": "Oscar Wilde", "category": "Famous"}
This API will return a random quote record on each request.
Read now
Unlock full access