如何在 WSO2 API 调用中添加附加参数
我使用的是 WSO2 API 管理器 1.7.我想要的是,当 WSO2 API 管理器收到 REST API 调用时,我想将 2 个附加参数传递给端点网关 API.所以例如API 管理器获得 3 个参数,然后我想再传递 2 个静态参数到端点 URL.我怎样才能做到这一点,请帮忙.
I am using WSO2 API manager 1.7. What I want is that when WSO2 API manager gets a REST API call then I want to pass 2 additional parameters to Endpoint gateway API. So e.g. API manager get 3 params then I want to pass 2 more static params to endpoint URL. how can I achieve that, please help.
谢谢帕文德拉
您可以将序列附加到公开的 API 并在标头中添加这些参数.您可以按照下面的文档 [1] 将序列添加到 API 管理器.类似地,您可以使用标头中介器添加所需的标头,如 [2]
You can append a sequence to the exposed API and add these parameters in a header. You can add a sequence to the API Manager by following the doc below[1]. Similarly u can add the required header using a header mediator as shown in [2]