What are the differences between WebAPI and WebAPI 2 [closed]
What are the MAIN differences (things I should be concerned about) between WepApi and WepApi2 that now ships with Visual Studio 2013?
Solution 1:
Major new features are,
- AttributeRouting
- OWIN self host
- IHttpActionResult
- CORS
- HttpRequestContext
I had the same question and found simple article about this, here.
Solution 2:
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:
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