Difference between WebApiConfig.cs and RouteConfig.cs

后端 未结 3 1284
长情又很酷
长情又很酷 2021-02-11 13:28

What is the difference between WebApiConfig.cs and RouteConfig.cs in the App_Start folder of an MVC Web API project in Visual Studio 2012?

3条回答
  •  Happy的楠姐
    2021-02-11 14:04

    If you are familiar with ASP.NET MVC, Web API routing is very similar to MVC routing. The main difference is that Web API uses the HTTP method, not the URI path, to select the action. You can also use MVC-style routing in Web API. This article does not assume any knowledge of ASP.NET MVC.

    From Routing in ASP.NET Web API

提交回复
热议问题