Helper for building REST clients for existing APIs.