ASP.NET Web API is Framework for building for building HTTP services on top of the .NET Framework. It ships with ASP.NET MVC 4. You can install the ASP.NET MVC 4 fromhere. ASP.NET Web API is a integrated Framework resulted in joint effort from WCF and ASP.NET teams. WCF REST is now replaced by ASP.NET Web API. You can read thepostto migrate your existing WCF Web API to ASP.NET Web API. This post briefly discuss about why we need it and how we can use it in ASP.NET and other projects.
Why use ASP.NET Web API?
- Reach More Clients– By creating HTTP services by using client appropriate formats you making your application broadly available. Your services not just consumed by browsers but also client applications, mobile applications and other devices. In this way you are having interoperability with other applications directly by consuming your services
- ASP.NET Web API uses content negotiation which makes it easy to provide the right format for each client like XML, JSON or custom formats
- Scale with the Cloud –by using fully asynchronous task based service framework which provide light-weight hosting options including windows azure web or worker roles.
Embrace HTTPHTTP is an application level protocol and is supported on clients. It really simplifies the communication with clients.
No comments:
Post a Comment