ASP.NET MVC REST frameworks

2020-02-09 04:55发布

问题:

There are number of REST frameworks around for ASP.NET MVC. Which one is the most mature in your opinion? Following are few I briefly looked at, but I couldn't decide.

  1. Snooze

  2. BistroMVC

  3. Restful Service with WCF

  4. OpenRasta

  5. Siesta

  6. REST support build in ASP.Net MVC SDK

.... there are few more.

回答1:

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.



回答2:

I completely agree with Darin.

But if you're looking for something closer to what WCF offers (Web service, versus a typical Web site), I've been extremely happy with WCF REST.

There's a WCF REST Service Template available via Visual Studio's Extension Manager that will get you up and running fairly quickly.



回答3:

OpenRasta

Have been implementing RESTFul service using OR, only one word to describe it => "Pure Awesomeness" ....actually it's 2 words.

For me the simplicity is a plus, the framework is easy to use and adopt to. Some of it's conventions in my opinion really help me to understand Resful. Many integration points in the framework, very easy to extend its functionalists.

watching video recordings of seb's talk is very entertaining as well :) very opinionated (in a good way IMO)



回答4:

I agree with Darin. Personally, I think Apache Thrift is also an option for doing client and server communication.