REST是否仅适用于Web API?如果不是,那么除了Web API之外,还有哪些其他系统可以遵循REST? [英] Is REST only for Web APIs? If not, then what other systems can obey REST apart from Web APIs?

查看:182
本文介绍了REST是否仅适用于Web API?如果不是,那么除了Web API之外,还有哪些其他系统可以遵循REST?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听人说,按照Roy Feilding的说法,REST不仅适用于Web服务.如果是这样,还有什么其他系统/机制/可以使用它?

I hear people say as per Roy Feilding that REST is not just for web services. If so, what other systems/mechanisms/anything can use it?

推荐答案

REST接口旨在有效地进行大颗粒超媒体数据传输-

REST适用于跨越多个组织的基于网络的长期应用程序-当然,问题是,如果这是您所需要的-网络就在那儿,那么在大多数情况下,按原样适应网络可能会更实际,并且可能会稍微扩展一下朝着有用的方向前进.

The problem, of course, is that if that's what you need -- the web is sitting right there, so in most cases it's going to be more practical to adapt to the web as is, and perhaps extend it a little bit in a useful direction.

替代方案不仅需要重新发明轮子,而且还必须说服世界采用新标准并加以使用.

The alternative requires not only re-inventing the wheel, but also persuading the world to adopt the new standard and use it.

这篇关于REST是否仅适用于Web API?如果不是,那么除了Web API之外,还有哪些其他系统可以遵循REST?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆