Basic implementation of REST API