Chapter

REST: From Research to Practice

pp 117-135

Date:

Beyond CRUD

  • Irum RaufAffiliated withDepartment of Information Technologies ICT, Abo Akademi University Email author 
  • , Ivan PorresAffiliated withDepartment of Information Technologies ICT, Abo Akademi University

* Final gross prices may vary according to local VAT.

Get Access

Abstract

REST web services offer interfaces to create, retrieve, update and delete information from a database (also called CRUD interfaces). However, REST web services can also be used to create rich services that offer more than simple CRUD operations and still follow the REST architectural style. In such a case it is important to create and publish behavioral service interfaces that developers can understand in order to use the service correctly. In this chapter we explain how to use models to design rich REST services. We use UML class diagrams and protocol state machines to model the structural and behavioral features of rich services. The design models are then implemented in Django Web Framework. We also show how to use the behavioral interfaces to implement a service monitor.