Create ASP.NET Core Web API CRUD methods (& test in Postman)

Опубликовано: 17 Январь 2025
на канале: Round The Code
2,094
57

We'll show you how to use the CRUD methods, GET, POST, PUT and DELETE in an ASP.NET Core Web API using .NET 8.

We'll go ahead and create a new API controller in our project and set up an endpoint for each of the methods. We'll also test each one using JSON requests.

Routing is a big part of Web API and that is something we'll discuss in a lot of detail.

The ApiController attribute is something that gets added to the controller class and we'll show you where you'll see this.

Finally as a bonus, we'll talk through Postman and how you can use it to test your Web API endpoints.

💻 Download the code example💻
https://www.roundthecode.com/dotnet-c...

► Read the tutorial:
https://www.roundthecode.com/dotnet-t...

🎓 .NET tutorials, code examples and coding challenges 🎓
https://www.roundthecode.com/?utm_sou...

► Chapters
0:00 Coming up...
0:17 Create a Web API controller
1:16 Create Web API endpoints using CRUD methods
5:11 Test in Postman
7:50 Learn more about Web APIs