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

Filter query parameters are not accepted by API #497

Open
jrwbabylonlab opened this issue Dec 12, 2024 · 0 comments
Open

Filter query parameters are not accepted by API #497

jrwbabylonlab opened this issue Dec 12, 2024 · 0 comments

Comments

@jrwbabylonlab
Copy link
Collaborator

When sending multiple values for the same query param such as state. Below is what FE is sending:
?state[]=active&state[]=unbonding

However, backend is expecting it to be: ?state=active&state=unbonding.

We shall fix from FE as the pattern used in backend is already consumed by partners in phase-1. it will otherwise be a breaking change if we change it.
Alternatively, you can make the backend to accept formats like ?state=active,unbonding while maintain the ability to accept ?state=active&state=unbonding
The comma style is the most common way of sending multi-valued query params

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

1 participant