Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 865
Jason Roell Avatar asked Jan 23 '14 03:01

Jason Roell


People also ask

What is a Web API 2?

In its simplest form, a Web API is an API over the web (HTTP). ASP.NET Web API is a framework that allows you to build Web API's, i.e. HTTP-based services on top of the . NET Framework using a convention based and similar programming model, as that of ASP.NET MVC.

What is the difference between Web API and Web API core?

In ASP.NET Core, there's no longer any distinction between MVC and Web APIs. There's only ASP.NET MVC, which includes support for view-based scenarios, API endpoints, and Razor Pages (and other variations like health checks and SignalR). In addition to being consistent and unified within ASP.NET Core, APIs built in .

What are the differences between Web API and WCF REST API?

KEY DIFFERENCEWCF is used for developing SOAP-based services whereas Web API is used for both SOAP-based and RESTful services. WCF does not offer any support for MVC features whereas Web API supports MVC features. WCF supports HTTP, UDP, and custom transport protocol whereas Web API supports only HTTP protocol.

What is latest version of Web API?

The latest ASP.NET Web API 2.2 package has the following version: "5.2. 0". You can install or update these packages through NuGet. The release also includes corresponding localized packages on NuGet.


2 Answers

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.

like image 139
iJay Avatar answered Oct 02 '22 16:10

iJay


In addition to the features mentioned by iJay

  1. Testability

  2. ODATA Improvements

  3. Filter Overrides

  4. ByteRangeStreamContent

We can differentiate web api and web api2 by using above features.

like image 45
Edukondalu Thaviti Avatar answered Oct 02 '22 15:10

Edukondalu Thaviti