简体   繁体   English

REST API 哪个更好? WCF Web API(预览版4)或OpenRasta或其他什么?

[英]What is better for REST API? WCF Web API (Preview 4) or OpenRasta or something else?

I see in this question that WCF Web API is still in preview and I've just started looking at OpenRasta .我在这个问题中看到 WCF Web API 仍在预览中,我刚刚开始查看 OpenRasta

Though OpenRasta looks more mature than WCF Web API, I'm still a bit confused.虽然 OpenRasta 看起来比 WCF Web API 更成熟,但我还是有点困惑。 Or please suggest if there is any other better framework for building REST API on .NET stack.或者请建议是否有任何其他更好的框架可以在 .NET 堆栈上构建 REST API。

Also, I observed that in OpenRasta aspx view containing HTML can also be rendered as a response (in ASP.NET MVC fashion) apart from other JSON/XML representations.此外,我观察到在包含 HTML 的 OpenRasta aspx view中,除了其他 JSON/XML 表示形式之外,也可以将其呈现为响应(以 ASP.NET MVC 方式)。 So, is it that I can even (or it is recommended that I should) build a web application which will also serve as a service layer to 3 rd party client developer using it?那么,我是否甚至可以(或者建议我应该)构建一个 web 应用程序,该应用程序也将作为使用它的第3方客户端开发人员的服务层? Or it is just for use as a service layer?或者它只是用作服务层?

OpenRasta is much more mature than WCF Web API. OpenRasta 比 WCF Web API 成熟得多。 OpenRasta is an opinionated REST framework. OpenRasta 是一个自以为是的 REST 框架。 WCF Web API currently has no opinions on how you should do REST, it only has opinions on how you use HTTP. WCF Web API currently has no opinions on how you should do REST, it only has opinions on how you use HTTP.

If you share OpenRasta's opinions on how to do REST then it will do a great job for you.如果您分享 OpenRasta 关于如何执行 REST 的意见,那么它将为您做得很好。 WCF Web API is still a preview. WCF Web API 仍然是预览版。 It has great potential but there is still a long way to go.它有很大的潜力,但距离 go 还有很长的路要走。

please read a closed question请阅读一个封闭的问题

OpenRasta vs FubuMVC vs Asp.net MVC just some thoughts OpenRasta vs FubuMVC vs Asp.net MVC 只是一些想法

Video with the question and answers, use the PAUSE to hold the scroll and read it.带有问题和答案的视频,使用 PAUSE 按住滚动并阅读。

http://gape.cc/jz822d http://gape.cc/jz822d

-- --

Err, It's been deleted though I can see deleted questions, let me make a screenshot of it. Err,虽然我可以看到已删除的问题,但它已被删除,让我截图

OpenRasta works for both services and html sites, it's what it was built for. OpenRasta 适用于服务和 html 站点,这就是它的目的。 There's codecs for webforms, razor, sparkview and new ones are easy enough to just plugin.有用于网络表单的编解码器,razor,sparkview 和新的编解码器很容易插入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM