如何在 WSO2 API 调用中添加附加参数 [英] how to add additional parameters in WSO2 API call

查看:40
本文介绍了如何在 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]

[1] https://docs.wso2.com/display/AM170/添加+中介+扩展

[2] https://docs.wso2.com/display/ESB481/Header+调解员

这篇关于如何在 WSO2 API 调用中添加附加参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆