Web API Knowledge [Resolved]

Posted by Bhupentiwari under ASP.NET on 11/18/2015 | Points: 10 | Views : 475 | Status : [Member] | Replies : 2
Hi guys

I am an asp.net developer with 4+ exp.

I know web services[asmx],web method but dont know WebAPI

Pls suggest me is it important to have knowledge of WebAPI being an asp.net developer

Thanks n Regards
Bhupendra Tiwari



Responses

Posted by: Sheonarayan on: 11/18/2015 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
Thanks Rajnilari2015,

Bhupentiwari, you can also read this asp.net web api tutorials from http://techfunda.com/Howto/asp-net-mvc/web-api.


Regards,
Sheo Narayan
http://www.dotnetfunda.com

Bhupentiwari, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajnilari2015 on: 11/18/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 25

Up
1
Down
In short Yes .

HTTP is not just for serving up web pages. It is also a powerful platform for building APIs that expose services and data. HTTP is simple, flexible, and ubiquitous. Almost any platform that you can think of has an HTTP library, so HTTP services can reach a broad range of clients, including browsers, mobile devices, and traditional desktop applications.

Apart from serving the request/response operations of Web Pages, Http protocol is also a powerful platform for building APIs that expose services and data.
WebAPI is a subset of Application Programming Interface which is use as a data exchange pattern in which the data can be receive/transfer in the form of JavaScript Object Notation (JSON) or Extensible Markup Language (XML).By the use of WebAPI, the Http Services can reach to any kind of client platform including browsers,mobile devices as well as desktop applications.

It's another purpose is to make REST(Representational State Transfer) services so that the client application can access the resources at the specified URI by using the GET,PUT,POST,DELETE requests.

WCF tried to solve this problem by using the webHttpBinding but it was not fully operational. MS resolved this problem by ASP.NET Web API which is a framework for building REST API's on top of the .NET Framework.


You can read this article http://code.tutsplus.com/articles/the-increasing-importance-of-apis-in-web-development--net-22368 for why it is important and importance of to learn WebAPI.

Moreover, as a starting guide you can follow these tutorials of mine about how to create and use them

http://www.dotnetfunda.com/articles/show/2340/crud-operation-using-web-api-and-mvc4

http://www.dotnetfunda.com/articles/show/2341/crud-operation-using-web-api-and-windows-application

Also for more details and advance usage of WebAPI, you can go through http://www.asp.net/web-api

Hope this will be helpful

--
Thanks & Regards,
RNA Team

Bhupentiwari, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response