DEV Community

Daniel Jonathan
Daniel Jonathan

Posted on • Originally published at biztalkdj.blogspot.com on

Azure PaaS | App Service | WebAPI

In this article, I would explain how to how Webapi in Azure App Service. Lets add Swagger reference to API project using Nuget Package.

1

Build and run the API project and nagivate to Swagger index, this page consolidates the API operation and even provides an user interface to test it out

1

Take the swagger doc and save it as a JSON file. Which can be used later for importing these API operation in Azure APIM.

1

Lets now, create a Azure App Service from Azure Portal as shown, provide the APP Name and create/use existing resource group.

1

Once App Service is created, lets create a virtual directory for ProductAPI; under Application Setting.

1

Now get the publish profile and modify according to virtual directory and using this publish profile, we would deploy our code base to Azure App service.

1

Once the code is deployed successfully we access the api operation from Azure App Service.

1

Lets test and verify the API's
1

Top comments (0)