Using Visual Studio to test your APIs
I heard about the HTTP files in Visual Studio when it first came out. I researched the new feature of using Visual Studio to test your APIs. I thought it was cool, but I have been a long-time fan and user of Postman. It is easy to use, has collections, can create tests, and most importantly is free. Over the last couple of years, Postman has made changes that require more configuration and overhead, but it is still a great tool. Fast forward to my latest project where I needed to create a couple of simple APIs. A basic Customer Crud and Order Crud. I went to fire up Postman, stopped, and thought this was a good option to try the Visual Studio solution for testing APIs. When you create .NET 8 web APIs, you get swagger for free. Swagger is a nice tool but is more for documenting the APIs versus validating them. What is a .http File solution in Visual Studio? A .http file is a plain text file that you can create in Visual Studio to write and ...