prototypical version of RESTful API