5 min readFeb 23, 2018
Web API with Visual Studio part-1
create the project
From Visual Studio, select File menu then New then Project.
Select the ASP.NET Core Web Application (.NET Core) project template. Name the project WebAPIDEMO and select OK.
In the New ASP.NET Core Web Application — TodoApi dialog, select the Web API template. Select OK.
Launch the app
In Visual Studio, press CTRL+F5 to launch the app. Visual Studio launches a browser and navigates to http://localhost:56846/api/values, where port is a randomly chosen port number.
Add a model class
Add a folder named “Models”. In Solution Explorer, right-click the project. Select Add then New Folder. Name the folder Models.