Getting ready

We'll make use of the library.book model of Chapter 5, Application Models, so in case you haven't done so yet, grab its code to be able to follow the examples.

We want to allow any user to query the full list of books. Furthermore, we want to provide the same information to programs via a JSON request.