Implements RESTing