how to add additional parameters in WSO2 API call

和自甴很熟 提交于 2019-12-12 04:09:26

问题


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.

Thanks Parvendra


回答1:


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/Adding+Mediation+Extensions

[2] https://docs.wso2.com/display/ESB481/Header+Mediator



来源:https://stackoverflow.com/questions/25445853/how-to-add-additional-parameters-in-wso2-api-call

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!