Grow your YouTube channel like a PRO with a free tool
Get Free YouTube Subscribers, Views and Likes

Adding Filtering Sorting And Pagination To a REST API | .NET 7

Follow
Milan Jovanović

Get the source code for this video for FREE → https://thedotnetweekly.ck.page/res...
☄ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
Support me on Patreon to access the source code:   / milanjovanovic  

REST APIs are the industry standard when it comes to building APIs. There are many nuances to building a good API, and it becomes more complicated in a Clean Architecture & DDDstyled system. I showed you in a previous video how to make a set of CRUD endpoints and some of the REST API best practices you should consider. And now, we're continuing our REST API journey by adding support for filtering, sorting, and pagination.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
   / @milanjovanovictech  

Chapters
0:00 Adding an endpoint for getting all records
3:22 Implementing Filtering in the API
6:06 Supporting LINQ Contains with ValueObjects
8:18 Introducing Sorting in the API
14:42 Adding Pagination support in the API
17:41 Wrapping the response in a PagedList

posted by laydlayout5kn