...
首页> 外文期刊>Electronic Notes in Theoretical Computer Science >Formalization and Verification of REST on HTTP Using CSP
【24h】

Formalization and Verification of REST on HTTP Using CSP

机译:使用CSP在HTTP上进行REST的形式化和验证

获取原文
   

获取外文期刊封面封底 >>

       

摘要

Representational State Transfer (REST), as a promising software architecture style, has been used in large scale since proposed. But considerable confusions about REST exist and many examples of supposedly RESTful applications violate key REST constraints. In this paper, we focus on the most important constraints of REST, stateless property and hypertext-driven property. First we establish a formal model for REST on HTTP in CSP. In the model, components in RESTful systems communicate with each other using standard HTTP methods and are modeled as CSP processes. From the model we can find the effects of HTTP methods on resources. Then we give formal descriptions for failure cases of stateless, hypertext-driven constraints of REST, and safe, idempotent properties of HTTP methods, within which whether a system breaks REST constraints or basic HTTP requirements can be checked. Furthermore, we use model checker PAT to prove all the constraints hold in our model. In the end, a case study about the process of buying food is mapped to our model to better illustrate the REST concepts and our approach.
机译:自提出以来,作为一种有前途的软件体系结构样式,代表性状态转移(REST)已被大规模使用。但是,关于REST的困惑仍然存在,许多所谓的RESTful应用程序示例违反了关键的REST约束。在本文中,我们将重点放在REST的最重要约束,无状态属性和超文本驱动的属性上。首先,我们为CSP中的HTTP建立REST的正式模型。在该模型中,RESTful系统中的组件使用标准HTTP方法相互通信,并被建模为CSP流程。从模型中,我们可以发现HTTP方法对资源的影响。然后,我们对无状态,超文本驱动的REST约束以及HTTP方法的安全,幂等属性的失败案例进行正式描述,可以在其中检查系统是否违反REST约束或基本的HTTP要求。此外,我们使用模型检查器PAT来证明模型中所有约束均成立。最后,将有关购买食物过程的案例研究映射到我们的模型,以更好地说明REST概念和我们的方法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号