Handling GET requests with ASP.NET Core Web API

Code Maze
Code Maze
14 هزار بار بازدید - 4 سال پیش - ►► Master Web API development
►► Master Web API development Best Practices: https://bit.ly/3TnqoFQ
►► Build great web apps in Blazor WebAssembly: https://bit.ly/437g87T

In this video, we are going to learn how to handle GET requests with ASP.NET Core Web API. We are going to cover the GetAll, GetById, and GetWithDetails requests.

LINKS MENTIONED IN THE VIDEO:
To visit the whole article and download the source code visit:
►► https://code-maze.com/net-core-web-de...
To watch the repository pattern video, visit:
►► Repository Pattern In ASP.NET Core We...
To learn more about AutoMapper usage in the ASP.NET Core project, visit:
►► Getting Started with AutoMapper in AS...

FOLLOW US ON SOCIAL MEDIA!
►► LinkedIn: marinko-spasojevic
►► Twitter: CodeMazeBlog
►► Facebook: CodeMazeBlog

VIDEO SUMMARY:
The Get Request is something we can’t miss while creating API because it is the most common request. So, it is essential to learn more about handling that kind of request.

This video is going to be a continuation of the Repository Pattern video and we are going to use its project as a starter project for this video. So, if you haven’t watched it, feel free to do so.

We are going to keep all the database logic inside the repository classes. Controllers will be responsible for handling requests, model validation, and returning responses to the frontend part of the application.

By doing so, our controllers won’t be overwhelmed with the code, and easier to read and maintain as well.
4 سال پیش در تاریخ 1399/05/14 منتشر شده است.
14,067 بـار بازدید شده
... بیشتر