Endpoint Explorer in Visual Studio

(Version: Visual Studio 17.6+)

HTTP files are a popular feature in VSCode and were brought into Visual Studio too. Recently, I learned about another cool endpoints feature in Visual Studio called the Endpoints Explorer.

This tool window lists all of the endpoints of your Web API project. You can find the Endpoints Explorer by going to View -> Other Windows -> Endpoints Explorer.

First, load a solution that has at least one Web API project in it. Then, find the Endpoint Explorer in the View menu.

You do need to have a Web API in your current solution. If you don’t have a Web API, the window will not be an option in the menu. When you do have a Web API, you will see it and you will be able to open it.

You can right-click on an endpoint, select the ‘Generate Request menu item’, and Visual Studio will create an HTTP file for you. You can then execute the endpoint.

The Endpoints Explorer is fairly new, so I expect future enhancements as new Visual Studio releases come out. Start using this feature and improve your Web API development experience.

Leave a comment