miLibris / flask-rest-jsonapi

Flask extension to build REST APIs around JSONAPI 1.0 specification.
http://flask-rest-jsonapi.readthedocs.io
MIT License
598 stars 153 forks source link

JSON API Client error #189

Open rubenghio opened 4 years ago

rubenghio commented 4 years ago

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