The DiscoveryApi type is defined at packages/core-api/src/apis/definitions/DiscoveryApi.ts:30.
The following Utility API implements this type: discoveryApiRef
Returns the HTTP base backend URL for a given plugin, without a trailing slash.
This method must always be called just before making a request, as opposed to fetching the URL when constructing an API client. That is to ensure that more flexible routing patterns can be supported.
For example, asking for the URL for
auth may return something like
getBaseUrl(pluginId: string): Promise<string>