ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.
Basically it's shipping with MVC4 apparently but it's not by any means meant to be used solely by MVC4. You can also call the endpoints from jQuery for example.
When to use it... if you want to expose data/information to either you own application or to the outside worldd so that other parties can interact with the data/information you expose to them.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Web API is a "restfull alternative" for WCF/web services. It took the good things of WCF and the MVC, mashed together and is, for as far as I noticed so far, easier to program with. Rather based on conventions than overly complicated configuration.
Simply take a look at it and give it a try. You'll like it for sure.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Honnappa
Participant
1112 Points
534 Posts
What is Web api and when to use this?
May 02, 2012 01:42 PM|LINK
I have been hearing word "Web api " in mvc architecture , what is this? why should i use this? when to use Web api?
My Profile
XIII
All-Star
182787 Points
23484 Posts
ASPInsiders
Moderator
MVP
Re: What is Web api and when to use this?
May 02, 2012 01:44 PM|LINK
Hi,
ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.
Taken from http://www.asp.net/web-api.
Basically it's shipping with MVC4 apparently but it's not by any means meant to be used solely by MVC4. You can also call the endpoints from jQuery for example.
When to use it... if you want to expose data/information to either you own application or to the outside worldd so that other parties can interact with the data/information you expose to them.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Honnappa
Participant
1112 Points
534 Posts
Re: What is Web api and when to use this?
May 02, 2012 01:59 PM|LINK
You mean to expose our classes to outer world? if so we can use web service why web api? i am new to this topic .....
My Profile
XIII
All-Star
182787 Points
23484 Posts
ASPInsiders
Moderator
MVP
Re: What is Web api and when to use this?
May 02, 2012 02:02 PM|LINK
Hi,
Web API is a "restfull alternative" for WCF/web services. It took the good things of WCF and the MVC, mashed together and is, for as far as I noticed so far, easier to program with. Rather based on conventions than overly complicated configuration.
Simply take a look at it and give it a try. You'll like it for sure.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Honnappa
Participant
1112 Points
534 Posts
Re: What is Web api and when to use this?
May 02, 2012 02:09 PM|LINK
Thank you very much..
My Profile
teguhyuliant...
Participant
1370 Points
372 Posts
Re: What is Web api and when to use this?
May 07, 2012 07:07 AM|LINK
If you learn more about WEB API, a lot of tutorial and basic learning that explain about it, one of which is here
http://en.wikipedia.org/wiki/Web_API