Implement Rest Service.