rest service inital setup