- Category: .NET
- #766907Hi Sriram,
what you thought is exactly correct, Web API, we called as Web Application Programming Interface.
Give respect to your work, Instead of trying to impress your boss.
Blog : http://naveens-dotnet.blogspot.in/
- #766914web application programming interface is now easily identified with the name of WEB API, it is used to building HTTP services that can be consumed by a broad range of clients including browsers, mobiles, iphone and tablets
here are some features of it
1. it works with HTTP verbs GET,POST,PUT and DELETE.
2. Responses have an Accept header and HTTP status code
3. Return response can be format to format JSON, XML or whatever format you want to add as a MediaTypeFormatter.
4. Accept and process contents like images, PDF files
5. supports the MVC features such as routing, controllers, action results, filter, model binders, IOC container
Editor, DotNetSpider MVM
Microsoft MVP 2014 [ASP.NET/IIS]
Web API is an application programming interface (API) for either a web server or a web browser. It is a web development concept, usually limited to a web application's client-side, and thus usually does not include web server or browser implementation details such as SAPIs or web browser engine APIs unless publicly accessible by a remote web application.
Please find more details through wikipedia for Web-API.
- #766931Can we say Webclient and Httprequest class are WebAPI then What is WebAPI2?
SRI RAMA PHANI BHUSHAN KAMBHAMPATI
- #766934WEB API is the short form of "Web application programming interface". It is almost like webservice. It will mainly constructed for "REST" calls. In our application if we are often using some methods we can keep that methods in the WEB API. We can consume that business logics in our application. You can access the WEP APl using simple HTTP calls. Following are the sample code to access the web API from the Client
using (var Myclient = new HttpClient())
Myclient.BaseAddress = new Uri("http://localhost/AppName/");
HttpResponseMessage Myresponse = await client.GetAsync("webapi/Items");
Item MyItem = await response.Content.ReadAsAsync>Item>();
Direction is important than speed
- #766942WebApi 2 is a next version or build released by Microsoft.
It introduces lots of new features than previous WebApi like Open Web Interface for .NET
CORS - Cross Origin Resource Sharing etc.
You can find its details over here: