ASP.Net Web API is a framework for creating web services that exposes data services to a broader range of clients including mobile devices, tablets, browsers and traditional desktop applications. Any mobile like Windows Phones, iPhones, Android or any browser can communicate to Web API if they are able to handle HTTP request/response.



ASP.Net Web API communicate with HTTP/HTTPs and are used for creating fully resource oriented services that return JSON, XML, or any other requested format the web supports. The purpose of Web API framework is to generate HTTP services that reach more clients by generating data in raw format that is in XML or JSON format. Web APIs can provide data services to mobile apps and browsers.

ASP.Net Web API uses all the features of HTTP like URIs, request/response headers, various content formats caching, versioning and there is no need to define any extra configuration settings for different devices. The data will be traveling to and fro from the server to the client because the capabilities of the service are mapped to the URIs and protocols. At the client side there is no need to create a proxy as client application and can directly retrieve and process the data. We are able to perform various operations on these resources with the help of HTTP protocols.

The basic CRUD operations are mapped to the HTTP protocols in the following manner:

Features of ASP.NET WEB API

Features of ASP.NET WEB API 2