Build and test

Build and test the web API

  1. Open the .csproject file in Visual Studio

  2. Click on the green play icon to start debugging the application

  3. This opens the swagger UI where we can experiment with the WebAPI

We could also use command line tools to run the application as well as test day Web API For more information look into dotnet run and Microsoft.dotnet-httprepl

Swagger UI on the screen

Click on try it out and then click execute button

Response shown for execute

Note: we can also use any other tool like postman to explore the Web API we just created!

Last updated