top button
Flag Notify
Site Registration

What are the advantages of using ASP.NET Web API?

+2 votes
400 views
What are the advantages of using ASP.NET Web API?
posted Aug 18, 2015 by Shivaranjini

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

It supports convention-based CRUD Actions since it works with HTTP verbs GET,POST,PUT and DELETE.

Responses have an Accept header and HTTP status code.

Responses are formatted by Web API’s MediaTypeFormatter into JSON, XML or whatever format you want to add as a MediaTypeFormatter.

It may accepts and generates the content which may not be object oriented like images, PDF files etc.

It has automatic support for OData. Hence by placing the new [Queryable] attribute on a controller method that returns
IQueryable, clients can use the method for OData query composition.

It can be hosted with in the applicaion or on IIS.

It also supports the MVC features such as routing, controllers, action results, filter, model binders, IOC container or dependency injection that makes it more simple and robust.

answer Aug 25, 2015 by Manikandan J
...