Electronic Proceedings in Theoretical Computer Science (Oct 2012)

Analyzing Consistency of Behavioral REST Web Service Interfaces

  • Ivan Porres,
  • Ali Hanzala Khan,
  • Irum Rauf

DOI
https://doi.org/10.4204/EPTCS.98.8
Journal volume & issue
Vol. 98, no. Proc. WWV 2012
pp. 77 – 92

Abstract

Read online

REST web services can offer complex operations that do more than just simply creating, retrieving, updating and deleting information from a database. We have proposed an approach to design the interfaces of behavioral REST web services by defining a resource and a behavioral model using UML. In this paper we discuss the consistency between the resource and behavioral models that represent service states using state invariants. The state invariants are defined as predicates over resources and describe what are the valid state configurations of a behavioral model. If a state invariant is unsatisfiable then there is no valid state configuration containing the state and there is no service that can implement the service interface. We also show how we can use reasoning tools to determine the consistency between these design models.