December 2019
Intermediate to advanced
510 pages
11h 33m
English
Pagination is another essential feature of APIs. Get operations usually return a significant number of records and information. Sometimes, it is necessary to implement pagination to avoid a large response size.
Let's take a look at how to implement maintainable and reusable pagination in the ItemController class. First of all, we need to create a new pagination response model that represents the requested page. We can create a new PaginatedItemResponseModel.cs file ...