![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
webapi
Acettest
这个作者很懒,什么都没留下…
展开
-
Use OWIN to Self-Host ASP.NET Web API 2
示例代码链接:https://docs.microsoft.com/en-us/aspnet/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api在新建webapicontroller时,如下:internal class ValuesController : ApiController { ...原创 2018-05-29 15:15:58 · 357 阅读 · 0 评论 -
webapi与mvc的不同之处
关于webapi 1.以http协议传数据,可跨平台,跨终端 2.路由方面与mvc相同,分默认路由和特性路由 3.需要进行路由配置 4.通过ajax获得数据 5.mvc路由和webapi路由是分开的,webapi配置处WebApiConfig.cs,mvc路由配置处RouteConfig.cs If you are familiar with ASP.NET MVC, Web API ...原创 2018-05-31 10:06:43 · 2475 阅读 · 0 评论