First version of the REST service with tests.