New API design to support path route and backward compatible