Monday 24 February 2014

ASP.NET Web API


What is ASP.NET Web API?


ASP.NET Web API is a framework for building web APIs on top of the .NET Framework.

What Model means in ASP.NET Web API?


A model is an object that represents the data in your application. ASP.NET Web API can automatically serialize your model to JSON, XML, or some other format, and then write the serialized data into the body of the HTTP response message. As long as a client can read the serialization format, it can deserialize the object. Most clients can parse either XML or JSON. Moreover, the client can indicate which format it wants by setting the Accept header in the HTTP request message.

What Controller means in ASP.NET Web API?


In Web API, a controller is an object that handles HTTP requests. We'll add a controller that can return either a list of products or a single product specified by ID.


Source

No comments:

Post a Comment