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

How to send an array of queryParameters? #457

Closed
chihao10711 opened this issue Feb 26, 2022 · 3 comments
Closed

How to send an array of queryParameters? #457

chihao10711 opened this issue Feb 26, 2022 · 3 comments
Labels
wontfix This will not be worked on

Comments

@chihao10711
Copy link

chihao10711 commented Feb 26, 2022

Describe the bug
I have queryParameters with name "include" and value as image
image

However, the URI when using DIO is not sent to the array, but it is duplicated "include".
image

I tried using Do().get with queryParameters like that and it works fine. And here is the URI when using Dio().get
Pasted Graphic
Is there a way can generator code can work like this?

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 16, 2022
@tanwarjigyasu
Copy link

tanwarjigyasu commented Nov 29, 2023

Can you tell me how you did that using Dio.get() or if there is a way to do it with retrofit now ? I have a similar problem like you, my API needs array for a particular parameter but retrofit just copies it multiple times so it doesn't work overall. I don't have any experience in Dio as I haven't really used it before

@chihao10711
Copy link
Author

@tanwarjigyasu I add FixQueryStringRequestOptions in to interceptors, please see more detail cfug/dio#734

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants