What are the differences between WebAPI and WebAPI 2
C#.Netasp.net Web-ApiC# Problem Overview
What are the MAIN differences (things I should be concerned about) between WepApi and WepApi2 that now ships with Visual Studio 2013?
C# Solutions
Solution 1 - C#
Major new features are,
> 1. AttributeRouting > 2. OWIN self host > 3. IHttpActionResult > 4. CORS > 5. HttpRequestContext
I had the same question and found simple article about this, here.
Solution 2 - C#
In addition to the features mentioned by iJay
-
Testability
-
ODATA Improvements
-
Filter Overrides
-
ByteRangeStreamContent
We can differentiate web api and web api2 by using above features.
Solution 3 - C#
WebAPI and WebAPI 2
Actually WebAPI 2.0 is enhanced feature of WebApi there is no difference between this two. In version 2.0, the Web API framework has been enhanced to support the following features:
- IHttpActionResult return type
- A new Routing Attribute
- Support for Cross-Origin requests using CORS
- Securing ASP.NET Web API using OAuth 2.0
- Support for $expand, $select in OData Service