You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, I want to update - url: https://dev.domain.com/my-example-api per environment.
The target environment I will be publishing to may have different URL like https://prod.domain.com/my-example-api. However, I cant find a way to overwrite it. Is there a way using the configuration.yaml files?
During publishing, I am seeing that it retains the URL from extracted environment and as a result it gives inconsistent value of context.Request.Url.Path when evaluated in policy.xml unless its corrected manually or nulled out in APIs > MyAPI> Settings > Web Service URL field post publishing.
Expected behavior
A way to overwrite using configuration.yaml
Actual behavior
N/A
Reproduction Steps
N/A
The text was updated successfully, but these errors were encountered:
Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.
aimtiaz11
changed the title
[Question] When publishing an API from one APIM instance to another, how to update the URL specification.yaml
[Question] When publishing an API from one APIM instance to another, how to update the URL in specification.yaml
Feb 5, 2025
Release version
v6.0.0-rc1
Question Details
When publishing an API after extracting from one APIM instance & publishing to another, how to update the
servers.url
in specification.yaml of an API?File path:
apim\apis\my-example-api\specification.yaml
Here, I want to update
- url: https://dev.domain.com/my-example-api
per environment.The target environment I will be publishing to may have different URL like
https://prod.domain.com/my-example-api
. However, I cant find a way to overwrite it. Is there a way using the configuration.yaml files?During publishing, I am seeing that it retains the URL from extracted environment and as a result it gives inconsistent value of
context.Request.Url.Path
when evaluated in policy.xml unless its corrected manually or nulled out inAPIs > MyAPI> Settings > Web Service URL
field post publishing.Expected behavior
A way to overwrite using configuration.yaml
Actual behavior
N/A
Reproduction Steps
N/A
The text was updated successfully, but these errors were encountered: