HTTP Post Method in Visual Studio Code - 2/7 | Introduction to Web API with .NET Core

Published: 03 September 2025
on channel: Think Like an Engineer
284
12

Learn how to work with the POST method in a Web API using C#! 🚀

In this video, we continue our API development series and build on what we learned in the previous lesson. We’ll start by updating our GET method to return all colors from a list instead of a single item by ID. Then, we’ll refactor our array into a generic list, allowing us to add new data dynamically.

Once the setup is complete, we’ll create a POST endpoint that accepts new color data and adds it to our list — with built-in validation to handle empty requests gracefully. Finally, we’ll test everything using the Postman extension in Visual Studio Code, sending both valid and invalid requests and verifying the results.

What you’ll learn:
✅ How to modify a GET method to return all data
✅ How to use a generic list in Web API
✅ How to build and validate a POST method
✅ How to test API endpoints using Postman

Don’t forget to subscribe to stay updated with our Web API tutorial series!
Need help setting up your environment? Check out the videos linked below before starting.
📌    • How to Install Visual Studio Code on Mac |...  
📌    • C# with Visual Studio Code on Mac | Set Up...  
📌    • How to Install Postman Extension in Visual...  

#csharp #webapi #dotnet #visualstudiocode


On this page of the site you can watch the video online HTTP Post Method in Visual Studio Code - 2/7 | Introduction to Web API with .NET Core with a duration of hours minute second in good quality, which was uploaded by the user Think Like an Engineer 03 September 2025, share the link with friends and acquaintances, this video has already been watched 284 times on youtube and it was liked by 12 viewers. Enjoy your viewing!