Added REST service to code