update routing API to support routing models for both requests and responses