【问题标题】:Multiple wildcards in ApigeeApigee 中的多个通配符
【发布时间】:2021-12-13 18:55:16
【问题描述】:

我有一个场景,我需要在 Apigee Edge 网关中使用 BAsepath,并使用多个像这样的通配符

api/vi/customer/{多个单词}

多个单词可以如下所示。如果我使用 basepath 作为 api/vi/customer/* .

  • 只接受一个词而不是多个词。如果通配符需要像下面这样的多个单词,解决方案是什么

api/vi/customer/account/id?a=1

api/vi/customer/帐户/名称

api/vi/customer/帐户/状态

【问题讨论】:

    标签: apigee


    【解决方案1】:

    您在 Apigee 中使用两个核心概念工作:Basepaths 和 Proxy Endpoints。

    api/vi/basepath/endpoint1

    在想要支持通配符时,您可以选择:您可以在一个核心 Basepath 上设置代理,但使用多个(或通配符)代理端点,或者您也可以设置单独的 Basepath。文档可以帮助您了解权衡取舍。

    核心代理路由文档:https://docs.apigee.com/api-platform/fundamentals/understanding-routes

    如何设置通配符代理基本路径: https://docs.apigee.com/api-platform/reference/api-proxy-configuration-reference#proxyendpoint-proxyendpointconfigurationelements

    这是八个月前 Stack Overflow 上的相关答案:Configure multiple base paths in APIGEE

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-03-15
      • 2017-01-08
      • 1970-01-01
      • 1970-01-01
      • 2014-06-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多