首页> 外文会议>IEEE International Conference on Web Services >Design and Describe REST API without Violating REST: A Petri Net Based Approach
【24h】

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

机译:设计和描述REST API而不违反休息:基于Petri网的方法

获取原文

摘要

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.
机译:随着RES架构风格在Web服务社区获得人气,有关如何以正确的方式设计RESTful Web服务(REST API)的越来越关注和辩论。我们将此问题归因于缺少标准模型和语言来描述尊重所有RET约束的REST API。因此,许多声称休息API的Web服务不是由休息规定的超媒体驱动的。这种情况可能导致休息API不像休息所承诺的那样可扩展,可扩展和可互操作。要解决此问题,本文提出了休息图表作为模型和语言来设计和描述REST API,而无需违反其余约束。 REST图表模型将REST API模拟作为一种特殊类型的彩色Petri网,其拓扑定义了其它API,其令牌标记定义了使用该API的用户代理的代表状态空间。我们使用示例REST API演示REST图表。我们还显示REST图表如何支持高效的内容协商和重用混合表示,以扩大设计选择。此外,我们争辩说,剩下的约束,例如超媒体驱动和无状态,可以在休息图表中自然地实施或自动执行。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号