Currently it is not possible, from within a REST endpoint, to obtain the URL of another endpoint on another wiki (on the same wiki farm). Some related functionality already exists:
- You can obtain the URL of another route on the same wiki via $this->getRouter()->getRouteUrl()
- You can obtain URLs (mostly of pages) for another wiki via methods in WikiReference
However, neither option will give you a foreign route URL. This could be useful e.g. for cross-wiki redirects, for which we have a use case in the CampaignEvents extension.