What if the web were not RESTful?

C. Davis
{"title":"What if the web were not RESTful?","authors":"C. Davis","doi":"10.1145/2307819.2307823","DOIUrl":null,"url":null,"abstract":"So-called RESTful services are in widespread use both on the Web, and increasingly, in large enterprises. We say \"so-called\" because in reality, most of these services are not very RESTful. Those active in the REST community know well where these interfaces fail to meet REST principles, however, true understanding remains only in this relatively small community. Unfortunately, the result is a set of interfaces that are ultimately limited in their use, and the deficiencies are not usually recognized until it is too late to make the necessary changes. Our experience has shown that individuals are not being deliberately neglectful, rather, they simply do not know what they do not know. Everyone thinks they \"get REST\", after all, using HTTP to move XML or JSON payloads over the network is very simple. We have found that most individuals begin to understand the nuances of REST when they are explained and they almost always ask for resources that further explain these concepts. Certainly, materials are available, however the best ones are rather substantial in size lessening the chance that many people will read them.\n In this paper we take a fresh approach to explaining the core principles of REST, by describing a World Wide Web that fails to meet these tenets. We look at each key element, resource orientation, the uniform interface, media types and hyperlinking, and imagine the consequences of not abiding by the REST architectural style on the end user or tools developer of the Web. We then do a similar analysis in the context of Web services and programmatic consumers, reexamining each REST characteristic, describing common mistakes and suggesting improvements. We have found that in discussions, the analogy of the World Wide Web has been very effective at explaining REST.","PeriodicalId":268294,"journal":{"name":"International Workshop on RESTful Design","volume":"78 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-04-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"12","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Workshop on RESTful Design","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2307819.2307823","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 12

Abstract

So-called RESTful services are in widespread use both on the Web, and increasingly, in large enterprises. We say "so-called" because in reality, most of these services are not very RESTful. Those active in the REST community know well where these interfaces fail to meet REST principles, however, true understanding remains only in this relatively small community. Unfortunately, the result is a set of interfaces that are ultimately limited in their use, and the deficiencies are not usually recognized until it is too late to make the necessary changes. Our experience has shown that individuals are not being deliberately neglectful, rather, they simply do not know what they do not know. Everyone thinks they "get REST", after all, using HTTP to move XML or JSON payloads over the network is very simple. We have found that most individuals begin to understand the nuances of REST when they are explained and they almost always ask for resources that further explain these concepts. Certainly, materials are available, however the best ones are rather substantial in size lessening the chance that many people will read them. In this paper we take a fresh approach to explaining the core principles of REST, by describing a World Wide Web that fails to meet these tenets. We look at each key element, resource orientation, the uniform interface, media types and hyperlinking, and imagine the consequences of not abiding by the REST architectural style on the end user or tools developer of the Web. We then do a similar analysis in the context of Web services and programmatic consumers, reexamining each REST characteristic, describing common mistakes and suggesting improvements. We have found that in discussions, the analogy of the World Wide Web has been very effective at explaining REST.
如果web不是rest式的呢?
所谓的RESTful服务在Web上广泛使用,并且越来越多地在大型企业中使用。我们说“所谓的”,是因为实际上,这些服务中的大多数都不是很RESTful。那些活跃于REST社区的人很清楚这些接口在哪里不符合REST原则,然而,真正的理解只存在于这个相对较小的社区中。不幸的是,结果是一组接口的使用最终受到限制,并且通常直到进行必要的更改时才发现缺陷。我们的经验表明,个人并不是故意忽视,相反,他们只是不知道他们不知道的东西。每个人都认为他们“得到了REST”,毕竟,使用HTTP在网络上移动XML或JSON有效负载是非常简单的。我们发现,大多数人在被解释后才开始理解REST的细微差别,他们几乎总是要求获得进一步解释这些概念的资源。当然,材料是可用的,但是最好的材料在尺寸上相当大,减少了许多人阅读它们的机会。在本文中,我们通过描述一个不符合这些原则的万维网,采用一种新的方法来解释REST的核心原则。我们将查看每个关键元素、资源方向、统一接口、媒体类型和超链接,并想象不遵守REST体系结构风格对Web的最终用户或工具开发人员的影响。然后,我们在Web服务和程序化消费者的上下文中进行类似的分析,重新检查每个REST特征,描述常见错误并提出改进建议。我们发现,在讨论中,万维网的类比对于解释REST非常有效。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信