Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从 Exchange 管理我的 API,它正在使用带有代理的 Endpoint。我给出了在 Cloudhub 中实现 API 的实现 URL。
现在我对 raml 文件进行了一些更改,并使用 v2 发布到 Exchange。然后我在 API 管理器中创建了实例相同的 API。
现在问题来了,我需要停用 v1 并启用 v2。我怎样才能做到这一点 ?
请建议..,
您需要更改自动发现元素 apiName 和版本以指向新实例。
<api-platform-gw:api apiName="<API Name for V2>" version="<API Version for V2>" flowRef="api-main" create="false" apikitRef="api-config" doc:name="API Autodiscovery" />
希望这可以帮助 ...