First implementation of REST API