You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by mijo michael <mi...@gmail.com> on 2022/02/08 04:51:59 UTC
Passing parameter in api call
How to pass parameters (url or query parameters) in the API call to the
route and upstream?
Re: Passing parameter in api call
Posted by Leslie Tsang <le...@icloud.com.INVALID>.
By default, APISIX behaves the same as NGINX, it does not obstruct parameter passing.
APISIX rewrites the request parameters if the "proxy-rewrite" plugin requests it (which configured in route config).
Leslie Tsang
leslie.tsang@icloud.com
> On 10 Feb 2022, at 9:47 AM, Bozhong Yu <im...@gmail.com> wrote:
>
> Yes, if you need to rewrite your parameters, you can use response-rewrite
> plugin、 proxy-rewrite plugin..
> response-rewrite:
> https://apisix.apache.org/docs/apisix/plugins/response-rewrite
> proxy-rewrite: https://apisix.apache.org/docs/apisix/plugins/proxy-rewrite
>
> ZhengSong Tu <tz...@gmail.com> 于2022年2月10日周四 09:41写道:
>
>> Default pass.
>>
>> *ZhengSong Tu*
>> My GitHub: https://github.com/tzssangglass
>> Apache APISIX: https://github.com/apache/apisix
>>
>> mijo michael <mi...@gmail.com> 于2022年2月9日周三 22:44写道:
>>>
>>> How to pass parameters (url or query parameters) in the API call to the
>>> route and upstream?
>>
Re: Passing parameter in api call
Posted by Bozhong Yu <im...@gmail.com>.
Yes, if you need to rewrite your parameters, you can use response-rewrite
plugin、 proxy-rewrite plugin..
response-rewrite:
https://apisix.apache.org/docs/apisix/plugins/response-rewrite
proxy-rewrite: https://apisix.apache.org/docs/apisix/plugins/proxy-rewrite
ZhengSong Tu <tz...@gmail.com> 于2022年2月10日周四 09:41写道:
> Default pass.
>
> *ZhengSong Tu*
> My GitHub: https://github.com/tzssangglass
> Apache APISIX: https://github.com/apache/apisix
>
> mijo michael <mi...@gmail.com> 于2022年2月9日周三 22:44写道:
> >
> > How to pass parameters (url or query parameters) in the API call to the
> > route and upstream?
>
Re: Passing parameter in api call
Posted by ZhengSong Tu <tz...@gmail.com>.
Default pass.
*ZhengSong Tu*
My GitHub: https://github.com/tzssangglass
Apache APISIX: https://github.com/apache/apisix
mijo michael <mi...@gmail.com> 于2022年2月9日周三 22:44写道:
>
> How to pass parameters (url or query parameters) in the API call to the
> route and upstream?