WebAPI Module 1
  • Introduction
    • Presentation
    • Overview of REST
    • Open API
    • Swagger UI
  • Getting started
    • Create a project
    • Build and test
    • Understand controller
  • Create pizza API
    • Add a data store
    • Add a controller
    • Understand CRUD
    • Implement CRUD
  • Project Repo
Powered by GitBook
On this page
  • Build and test the web API
  • Swagger UI on the screen
  1. Getting started

Build and test

PreviousCreate a projectNextUnderstand controller

Last updated 1 year ago

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!