Last post Oct 20, 2014 05:10 PM by Rion Williams
Oct 20, 2014 12:29 PM|asad_dba|LINK
I want to inquire about WEB API , what are the main feature of WEB API, I believe its only give interface in HTTP or to mobile device or any other additional benefits of web api . Web Api is acting as class (OBJECT ORIENTED PROGRAMMING) or acting like
a function. Furthermore I am looking for main reason why we should WEB API in our software development.
Oct 20, 2014 12:48 PM|PatriceSc|LINK
http://msdn.microsoft.com/en-us/library/jj823172(v=vs.110).aspx for a WCF/web API comparison.
Oct 20, 2014 01:07 PM|Rion Williams|LINK
You have two major options when working with Web Services in ASP.NET. The older approach being Windows Communication Foundation (WCF) and the newer being Web API. I'll include a few resources below detailing Getting Started with both technologies.
Windows Communication Foundation
Windows Communication Foundation (or WCF) is a one of Microsoft's primary methods of handling web services within ASP.NET. I would recommend checking out the following resources :
ASP.NET Web API is a development environment aimed at developing RESTful Web Services that will allow your application to easily send and recieve HTTP Requests (web
requests) and perform operations based on the types of Requests that are made to it (such as providing information about a user if provided their ID etc.) It was designed to replace the previous Windows Communication Foundation
(WCF) approach to developing Web Serviecs within .NET.
You can learn more about it by visiting the Web API area of this site.
Benefits of Web API over WCF
A few benefits that you'll often hear regarding choosing Web API over WCF :
There really isn't any particular reason to ALWAYS choose one over the other. They each serve to accomplish similar goals (web services) in different ways and have their own strengths and weaknesses. I would
recommend reading through an article that compares and contrasts the two such as this one to help get a better idea of what you need as there are so many different factors at play here. There really isn't any reason that you couldn't implement both for
a single type of application and use Web API for your "web" oriented activities and WCF for more of your larger "data" oriented activities.
Oct 20, 2014 01:34 PM|asad_dba|LINK
I want to inquire, is it right to put all our business logic in web api as class and access them in asp .
Oct 20, 2014 05:10 PM|Rion Williams|LINK
Yes. Generally, the Web API will handle all of your business logic.