{"id":20465887,"url":"https://github.com/fernandocalmet/dotnet-aspnet-core-webapi-pagination","last_synced_at":"2025-04-13T08:50:34.029Z","repository":{"id":58674658,"uuid":"487324912","full_name":"FernandoCalmet/dotnet-aspnet-core-webapi-pagination","owner":"FernandoCalmet","description":"🦄 This project is a demonstration of pagination using ASP.NET Core Web API with NET 8.","archived":false,"fork":false,"pushed_at":"2024-01-09T02:17:33.000Z","size":6467,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T00:22:53.393Z","etag":null,"topics":["aspnet-core","csharp","net8","pagination","webapi"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FernandoCalmet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-30T16:21:26.000Z","updated_at":"2024-10-08T08:56:02.000Z","dependencies_parsed_at":"2024-11-15T13:31:00.837Z","dependency_job_id":null,"html_url":"https://github.com/FernandoCalmet/dotnet-aspnet-core-webapi-pagination","commit_stats":null,"previous_names":["fernandocalmet/dotnet-aspnet-core-webapi-pagination"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandoCalmet%2Fdotnet-aspnet-core-webapi-pagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandoCalmet%2Fdotnet-aspnet-core-webapi-pagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandoCalmet%2Fdotnet-aspnet-core-webapi-pagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FernandoCalmet%2Fdotnet-aspnet-core-webapi-pagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FernandoCalmet","download_url":"https://codeload.github.com/FernandoCalmet/dotnet-aspnet-core-webapi-pagination/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688417,"owners_count":21145763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspnet-core","csharp","net8","pagination","webapi"],"created_at":"2024-11-15T13:20:16.779Z","updated_at":"2025-04-13T08:50:33.995Z","avatar_url":"https://github.com/FernandoCalmet.png","language":"C#","funding_links":["https://ko-fi.com/fernandocalmet"],"categories":[],"sub_categories":[],"readme":"# C# ASPNET Core Web API Pagination\n\n[![Github][github-shield]][github-url]\n[![Kofi][kofi-shield]][kofi-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n[![Khanakat][khanakat-shield]][khanakat-url]\n\n## 🔥 ABOUT THE PROJECT\nThis project is a demonstration of pagination using ASP.NET Core Web API with NET 8.\n\n## ⚙️ INSTALLATION\nClone the repository.\n\n```bash\ngh repo clone FernandoCalmet/dotnet-aspnet-core-webapi-pagination\n```\n\nData migration:\n\n```bash\ndotnet ef database update\n```\n\nGenerate a new migration in the migrations directory:\n\n```bash\ndotnet ef migrations add InitialCreate --context ApplicationDbContext --output-dir Data/Migrations\n```\n\n## 📓 THEORETICAL OVERVIEW\n\n### What is Pagination? Why is it Important?\nImagine having an API endpoint that could return millions of records in a single request. Suppose hundreds of users hit this endpoint simultaneously, requesting all the data at once. This could severely overload your server, causing various problems, including security risks.\n\nAn ideal API endpoint should allow its consumers to retrieve only a specific number of records at a time. By doing so, we avoid overloading our Database Server, the CPU hosting the API, and network bandwidth. This feature is crucial for any API, especially public ones.\n\nPagination is a method where you receive a paginated response. This means you request a page number and a page size, and the ASP.NET Core WebApi returns precisely what you asked for, nothing more.\n\nBy implementing Pagination in your APIs, Front-end Developers will find it comfortable to build UIs that aren't laggy. Such APIs are great for integration by other consumers (MVC, React.js apps) as the data is already paginated.\n\n## 📄 LICENSE\nThis project is under the MIT License - see the [LICENSE](LICENSE) file for more details.\n\n## ⭐️ STAR THE PROJECT\nIf you found this implementation helpful or used it in your projects, consider giving it a star. Thank you! Or, if you're feeling extra generous, support the project with a [small contribution!](https://ko-fi.com/fernandocalmet).\n\n\u003c!--- reference style links ---\u003e\n[github-shield]: https://img.shields.io/badge/-@fernandocalmet-%23181717?style=flat-square\u0026logo=github\n[github-url]: https://github.com/fernandocalmet\n[kofi-shield]: https://img.shields.io/badge/-@fernandocalmet-%231DA1F2?style=flat-square\u0026logo=kofi\u0026logoColor=ff5f5f\n[kofi-url]: https://ko-fi.com/fernandocalmet\n[linkedin-shield]: https://img.shields.io/badge/-fernandocalmet-blue?style=flat-square\u0026logo=Linkedin\u0026logoColor=white\u0026link=https://www.linkedin.com/in/fernandocalmet\n[linkedin-url]: https://www.linkedin.com/in/fernandocalmet\n[khanakat-shield]: https://img.shields.io/badge/khanakat.com-brightgreen?style=flat-square\n[khanakat-url]: https://khanakat.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandocalmet%2Fdotnet-aspnet-core-webapi-pagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffernandocalmet%2Fdotnet-aspnet-core-webapi-pagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffernandocalmet%2Fdotnet-aspnet-core-webapi-pagination/lists"}