跳到主要导航 跳到搜索 跳到主要内容

Formalization and verification of REST on HTTP using CSP

  • Ting Yuan
  • , Yiting Tang
  • , Xi Wu
  • , Yue Zhang
  • , Huibiao Zhu
  • , Jian Guo
  • , Weijun Qin
  • East China Normal University
  • CAS - Institute of Information Engineering

科研成果: 期刊稿件文章同行评审

摘要

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.

源语言英语
页(从-至)75-93
页数19
期刊Electronic Notes in Theoretical Computer Science
309
DOI
出版状态已出版 - 22 12月 2014

指纹

探究 'Formalization and verification of REST on HTTP using CSP' 的科研主题。它们共同构成独一无二的指纹。

引用此