It's nice to be able to show content, but it's better to show content as a result of some user input. This recipe will demonstrate the different ways to receive this input and react to it. As in the previous recipes, we'll make use of the library.book model.
Consuming parameters passed to your handlers
How to do it...
First, we'll add a route that expects a traditional parameter with a book's ID to show some details about it. Then, we'll do the same, but we'll incorporate our parameter into the path itself:
- Add a path that expects a book's ID as a parameter:
@http.route('/my_module/book_details', type='http', auth='none') def book_details(self, book_id...