In this video, we are going to cover why it is useful to have paginated data.
- [Narrator] Hi, and welcome to the last video of Section 3,…Implementing Pagination.…In the last video we covered hypermedia…and HATEOAS for RESTful API.…In this video we are going to cover another advanced topic…of web APIs, pagination.…We are going to see what is pagination…in a RESTful API, and why is it a good practice…to implement pagination within our API.…Finally we will review the source code…for implementing this feature.…Pagination is a feature in software development…which is very similar to the pagination…concept in publishing, which means the data…is divided in smaller chunks for easier management,…and small payload from the API server.…
In many cases, the pagination is used for an easier…and more responsive user interface development.…Handling smaller chunks of data makes it easier…to cache and manage data.…Now we will open the middleware.py file.…First, we need to define the number of items…to be sent back to the client for each page.…Also, it is a good practice to return the next…and previous page name.…
Regardless of platform, you will need to build APIs to serve data between different client applications and endpoints. Good APIs are a necessity for web and mobile projects, especially with the modern, mobile-first approach to development. This course delivers the fundamental knowledge required to enable highly connected interactions between applications via RESTful web APIs. Follow along with Gergo Bogdan and learn how to build up and structure an effective web API that can be used by any client application accessing it over HTTP, using Flask, the Python microframework.
Find out how to implement CRUD operations using SQLAlchemy and MySQL as the data store. Get an understanding of how REST works relative to APIs, and learn how to test APIs written in Python with the support of Flask. Explore token-based authentication and find out how to store passwords securely in your database. Along the way, Gergo introduces best practices and design guidelines when building large applications.
- Setting up Flask
- Using Flask templates and routing
- Implementing CRUD operations
- Implementing pagination
- Configuring RESTful authentication
- HTTP caching
- Securing web APIs
- Testing the application