Use APIM in combination with DAB - 'nextLink URL' #1447
-
We're exposing all our API's using Azure API Management and are also looking into exposing DAB using APIM (currently hosted on ACI). At this moment we can succesfully call the DAB endpoint through APIM, but the 'nextLink' url contains the hostname of the Container instance. We can search/replace the url ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think APIM support is important. Here are a couple of options:
Right now, at least, the first option is a plausible workaround. No? What I am not clear on here is if returning a relative link is sufficient for all APIM support. |
Beta Was this translation helpful? Give feedback.
Indeed, the APIM policy was also the solution I was thinking about as a workaround. I've added the following code to the outbound section of the APIM policy (quick and dirty setup):
<find-and-replace from="@(context.Request.Url.Scheme + "://" + context.Request.Url.Host + ":" + context.Request.Url.Port + context.Request.Url.Path)" to="@(context.Request.OriginalUrl.Scheme + "://" + context.Request.OriginalUrl.Host + context.Request.OriginalUrl.Path)" />