Introduction
What is Web API? The term API stands for 'Application Programming Interface'. Web API is a framework for building HTTP services that can be consumed by a broad range of clients including browsers, mobiles, iPhones, and tablets.
Steps
Follow the below steps to create a Web API project in Visual Studio
I have used Visual Studio 2015 Express Web and PostgreSQL to develop Web API application.
Let's start with creating a Web API project in visual studio.
Open visual studio -> Go to File -> Select New à Select Project
Step 1 - In the template pane
- Select Installed Templates
- Expand the Visual C# menu.
- Inside that Visual C# select Web.
- In the list of projects select ASP.Net MVC 4 Web Application.

Step 2
After clicking on OK, one more window will appear. Check on MVC and Web API checkbox and click on OK, as shown in the below screenshot.

Step 3
So, finally Web API - MVC project is created. It will create a default structure for the project.

Step 4
Set the home page URL in RouteConfig class file as shown in below snapm in any MVC url contains the 3 values given values.









Ozgur CakmakPosted Dec 19, 2019, 8:43 AM
Thanks for sharing. I like this document
Rushi MehtaPosted Dec 18, 2019, 6:33 AM
Thanks for your valuable feedback.. Onkar
Onkar SharmaPosted Dec 18, 2019, 6:31 AM
Nice Article with great stuff... Thanks for sharing with us...
Rushi MehtaPosted Dec 18, 2019, 2:01 AM
Thanks Sourav
Sourav Kumar DasPosted Dec 17, 2019, 10:48 PM
Nice and useful article Sir.
Rushi MehtaPosted Dec 17, 2019, 9:58 PM
Thanks for the feedback
Ankur MistryPosted Dec 17, 2019, 9:44 PM
Great stuff for beginners...