finish initial path pattern matching for rest service