且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET MVC框架的REST

更新时间:2023-12-03 14:33:40

我个人会去与它内置和微软支持的默认ASP.NET路由引擎。这将确保你不会找到自己一天进有迁移某些code这已经过时了,因为作者根本决定放弃该项目的位置。当然,如果有具体要实现哪些是不支持了,你可以寻找替代品盒子的东西。但据公开一个RESTful API而言路由引擎应该只是罚款。

Personally I would go with the default ASP.NET routing engine which is built and supported by Microsoft. This will ensure that you won't find yourself one day into the position of having to migrate some code which has become obsolete because the authors simply decided to abandon the project. Of course if there is something specific that you want to implement which isn't supported out of the box you could search for alternatives. But as far as exposing a RESTful API is concerned the routing engine should work just fine.