added rest service with test