Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web API for vs 2010 installation & configuration

Tags:

I want to start learning Web API for that i need to set it up on my visual studio 2010.

In order to get started i looked at online tutorial regarding installation & configuration of web API on vs 2010 which some what confused me and decide ask expert advice on this.

I have couple of basic question regarding web API.

  1. How can i install Web API on VS 2010?
  2. What are the basic requirement for setting up Web API on VS 2010?
  3. Can Web API's be used with asp.net web forms ( As i have been working on asp.net web form, i don't have experience in MVC)

I am sure answers to these few question may help other user who want to start using web API on VS 2010.

Any help in this regarding is highly appreciated

like image 786
Learning Avatar asked Apr 03 '13 08:04

Learning


People also ask

Can Visual Studio 2010 create Web API?

Now you can create ASP.Net Web API project using Visual Studio 2010. When you create a new ASP.Net MVC 4 project, you can choose the Web API template.


2 Answers

Web API is in the ASP.NET MVC 4 project. You can install it in VS 2010:
http://robertbigec.wordpress.com/2012/10/11/developing-mvc-4-web-api-with-visual-studio-2010/

like image 156
Vladimir Avatar answered Sep 23 '22 21:09

Vladimir


In Visual Studio 2010 to add a project of type ASP.NET MVC Web API we can:

1 - Have .NET Framework 4 & ASP.NET MVC 4 installed.

2 - Add a new project and select MVC 4

( on this screen there is no Web API template which is where many users may expect to see it )

enter image description here

3 - Select the Web API Template

enter image description here

This was a great question that helped me; I hope this answer helps too.

like image 24
Catto Avatar answered Sep 25 '22 21:09

Catto