

Code for the browser app is found in the repository's wwwroot directory. Later, you will point the browser app to a remote API in App Service to test CORS functionality. Navigate to and play with the browser app. Navigate to and see a list of ToDo JSON items. Navigate to in a browser to play with the Swagger UI. Run the following commands to install the required packages, run database migrations, and start the application.
Advanced host monitor restful api how to#
However, since many repositories are changing their default branch to main (see Change deployment branch), this tutorial also shows you how to deploy a repository from main. The branch name change isn't required by App Service. It uses a Swagger generator to serve the Swagger UI and the Swagger JSON endpoint. This repository contains an app that's created based on the following tutorial: ASP.NET Core Web API help pages using Swagger. In the terminal window, cd to a working directory.Ĭlone the sample repository and change to the repository root. App Service supports the same workflow for APIs written in other languages. In this step, you set up the local ASP.NET Core project. If you don't have an Azure subscription, create an Azure free account before you begin. You can follow the steps in this tutorial on macOS, Linux, Windows. Deploy a RESTful API to Azure using Git.Create App Service resources using Azure CLI.
