我有一个场景,我需要在Apigee网关中使用BAsepath,其中包含多个外卡,如下所示
api/vi/customer/{多个单词}
多个单词可以如下所示。如果我使用basepath作为api/vi/customer/*。
下面这样的多个单词,那么解决方案是什么?
api/vi/customer/account/id?a=1
api/vi/customer/account/name
api/vi/customer/account/status
发布于 2021-10-29 18:23:21
在这里,您使用了两个核心概念: Basepaths和Proxy端点。
api/vi/basepath/endpoint1 1
当您想要支持通配符时,您可以选择:您可以在一个核心Basepath上设置一个代理,但可以使用多个(或外卡)代理端点,或者您也可以设置单独的Basepath。医生可以帮助你理解这种权衡。
核心代理路由文档:https://docs.apigee.com/api-platform/fundamentals/understanding-routes
以下是八个月前堆栈溢出的相关答案:Configure multiple base paths in APIGEE
https://stackoverflow.com/questions/69756335
复制相似问题