REST API 哪个更好? WCF Web API(预览版 4)或 OpenRasta 还是其他?
我在 this 问题中看到 WCF Web API 仍处于预览阶段,我刚刚 开始关注 OpenRasta。
虽然 OpenRasta 看起来比 WCF Web API 更成熟,但我仍然有点困惑。或者请建议是否有其他更好的框架用于在 .NET 堆栈上构建 REST API。
另外,我观察到,在 OpenRasta aspx 视图
中,除了其他 JSON/XML 表示形式之外,包含 HTML 的 HTML 也可以呈现为响应(以 ASP.NET MVC 方式)。那么,我是否可以(或者建议我应该)构建一个 Web 应用程序,该应用程序也可以作为使用它的第三方客户端开发人员的服务层?或者它只是用作服务层?
I see in this question that WCF Web API is still in preview and I've just started looking at OpenRasta.
Though OpenRasta looks more mature than WCF Web API, I'm still a bit confused. Or please suggest if there is any other better framework for building REST API on .NET stack.
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. 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 3rd party client developer using it? Or it is just for use as a service layer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
OpenRasta 比 WCF Web API 成熟得多。 OpenRasta 是一个固执己见的 REST 框架。 WCF Web API 目前没有关于应该如何进行 REST 的意见,它只对如何使用 HTTP 有意见。
如果您分享 OpenRasta 关于如何进行 REST 的观点,那么它将为您带来很大的帮助。 WCF Web API 仍然是预览版。它具有巨大的潜力,但还有很长的路要走。
OpenRasta is much more mature than WCF Web API. OpenRasta is an opinionated REST framework. 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. WCF Web API is still a preview. It has great potential but there is still a long way to go.
请阅读已关闭问题
视频附有问题和答案,使用PAUSE按住卷轴阅读。
--
呃,虽然我可以看到已删除的问题,但它已被删除,让我制作了它的屏幕截图。
please read a closed question
Video with the question and answers, use the PAUSE to hold the scroll and read it.
--
Err, It's been deleted though I can see deleted questions, let me make a screenshot of it.
OpenRasta 适用于服务和 html 站点,这就是它的构建目的。有用于 Webforms、razor、sparkview 的编解码器,新的编解码器很容易插入。
OpenRasta works for both services and html sites, it's what it was built for. There's codecs for webforms, razor, sparkview and new ones are easy enough to just plugin.