首页> 外文会议>2011 IEEE 9th 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的情况下设计和描述REST API:一种基于Petri Net的方法

获取原文
获取外文期刊封面目录资料

摘要

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.
机译:随着REST体系结构样式在Web服务社区中变得越来越流行,如何以适当的方式设计Restful Web服务(REST API)引起了越来越多的关注和争论。我们将此问题归因于缺乏描述所有REST约束的REST API的标准模型和语言。结果,许多声称是REST API的Web服务不是REST规定的超媒体驱动的。这种情况可能导致REST API不能像REST所承诺的那样具有可伸缩性,可扩展性和互操作性。为了解决这个问题,本文提出了将REST Chart作为一种模型和语言来设计和描述REST API,而不违反REST约束。 REST Chart将REST API建模为彩色Petri网的一种特殊类型,其拓扑定义了REST API,其令牌标记定义了使用该API的用户代理的表示状态空间。我们用示例REST API演示REST Chart。我们还将展示REST Chart如何支持有效的内容协商并重用混合表示形式以拓宽设计选择。此外,我们认为,REST约束(例如超媒体驱动和无状态)可以自然执行,也可以在REST Chart中自动检查。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号