8. Pagination, Searching, and Ordering
Learning Objectives
By the end of this chapter, you will be able to:
- Implement the pagination function using Flask-SQLAlchemy
- Serialize the paginated result using marshmallow for the frontend display
- Build the API with search function
- Sort and order the returned records in your own way
- Test all these features using Postman
This chapter covers pagination and how to change the order in which recipes are listed, as well as how to add search functionality for recipes and ingredients.