Building blocks for a RESTful API