问题
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