Design and Describe REST API without Violating REST: A Petri Net Based Approach

Li Li, W. Chou
{"title":"Design and Describe REST API without Violating REST: A Petri Net Based Approach","authors":"Li Li, W. Chou","doi":"10.1109/ICWS.2011.54","DOIUrl":null,"url":null,"abstract":"As REST architectural style gains popularity in the web service community, there is a growing concern and debate on how to design Restful web services (REST API) in a proper way. We attribute this problem to lack of a standard model and language to describe a REST API that respects all the REST constraints. As a result, many web services that claim to be REST API are not hypermedia driven as prescribed by REST. This situation may lead to REST APIs that are not as scalable, extensible, and interoperable as promised by REST. To address this issue, this paper proposes REST Chart as a model and language to design and describe REST API without violating the REST constraints. REST Chart models a REST API as a special type of Colored Petri Net whose topology defines the REST API and whose token markings define the representational state space of user agents using that API. We demonstrate REST Chart with an example REST API. We also show how REST Chart can support efficient content negotiation and reuse hybrid representations to broaden design choices. Furthermore, we argue that the REST constraints, such as hypermedia driven and statelessness, can either be enforced naturally or checked automatically in REST Chart.","PeriodicalId":118512,"journal":{"name":"2011 IEEE International Conference on Web Services","volume":"77 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2011-07-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"58","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2011 IEEE International Conference on Web Services","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICWS.2011.54","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 58

Abstract

As REST architectural style gains popularity in the web service community, there is a growing concern and debate on how to design Restful web services (REST API) in a proper way. We attribute this problem to lack of a standard model and language to describe a REST API that respects all the REST constraints. As a result, many web services that claim to be REST API are not hypermedia driven as prescribed by REST. This situation may lead to REST APIs that are not as scalable, extensible, and interoperable as promised by REST. To address this issue, this paper proposes REST Chart as a model and language to design and describe REST API without violating the REST constraints. REST Chart models a REST API as a special type of Colored Petri Net whose topology defines the REST API and whose token markings define the representational state space of user agents using that API. We demonstrate REST Chart with an example REST API. We also show how REST Chart can support efficient content negotiation and reuse hybrid representations to broaden design choices. Furthermore, we argue that the REST constraints, such as hypermedia driven and statelessness, can either be enforced naturally or checked automatically in REST Chart.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
设计和描述不违反REST的REST API:一种基于Petri网的方法
随着REST架构风格在web服务社区中越来越流行,关于如何以适当的方式设计Restful web服务(REST API)的关注和争论也越来越多。我们将此问题归因于缺乏标准模型和语言来描述尊重所有REST约束的REST API。因此,许多声称是REST API的web服务并不是REST规定的超媒体驱动的。这种情况可能导致REST api不像REST所承诺的那样可伸缩、可扩展和可互操作。为了解决这个问题,本文提出REST图作为一种模型和语言,在不违反REST约束的情况下设计和描述REST API。REST Chart将REST API建模为特殊类型的有色Petri网,其拓扑定义REST API,其令牌标记定义使用该API的用户代理的表示状态空间。我们用一个REST API示例来演示REST图表。我们还展示了REST Chart如何支持有效的内容协商和重用混合表示来扩展设计选择。此外,我们认为REST约束,如超媒体驱动和无状态,可以自然地强制执行,也可以在REST图中自动检查。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Selection of Composable Web Services Driven by User Requirements Progressive Reliability Forecasting of Service-Oriented Software Opportunistic Composition of Sequentially-Connected Services in Mobile Computing Environments Improving Web API Discovery by Leveraging Social Information CLAM: Cross-Layer Management of Adaptation Decisions for Service-Based Applications
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1