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

Published: 17 March 2024
on channel: 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


Watch video Create ASP.NET Core Web API CRUD methods (& test in Postman) online without registration, duration hours minute second in high quality. This video was added by user Round The Code 17 March 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,094 once and liked it 57 people.