Implements basic RESTFul API