init rest service