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

JSON API Client error #189

Open
rubenghio opened this issue Jun 4, 2020 · 0 comments
Open

JSON API Client error #189

rubenghio opened this issue Jun 4, 2020 · 0 comments

Comments

@rubenghio
Copy link
Contributor

I am using a react-admin client to invoke my json-api backend.....

I am getting the following URL:

http://localhost:4500/parameters?filter[id][]=2&filter[id][]=3&filter[id][]=4

which is returning only one record, because is being traslated to:

[{'name': 'id', 'op': 'eq', 'val': '2'}]

But, in case I run the request with:

http://localhost:4500/parameters?filter=[{"name":"id","op":"in","val":[2,3,4]}]

is working correctly......

It seems like the first request is not being interpreted as an IN

rubenghio added a commit to rubenghio/flask-rest-jsonapi that referenced this issue Jun 5, 2020
akira-dev added a commit that referenced this issue Sep 29, 2020
Feature to support 'in' clause based on jsonapi filter=1,2,3 - BUG: #189
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