Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send array of params joined by & #221

Open
mirabu2801 opened this issue Aug 21, 2023 · 1 comment
Open

Send array of params joined by & #221

mirabu2801 opened this issue Aug 21, 2023 · 1 comment

Comments

@mirabu2801
Copy link

Hello! I need to send a query param, whose value is an array
I need to send it in the format ?param=val1&param=val2. Is there a way to do this?

@josencv
Copy link

josencv commented Sep 28, 2023

I think the closest would be using the Bracket query mapping strategy of the lib:

ResourceGlobalConfig.queryMappingMethod = ResourceQueryMappingMethod.Bracket;

But then you'll need to pass the parameters adding [n] (url encoded) after the param name: ?param%5B0%5D=val1&param%5B1%5D=val2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants