Rest service implementation