flask-rest-jsonapi icon indicating copy to clipboard operation
flask-rest-jsonapi copied to clipboard

JSON API Client error

Open rubenghio opened this issue 5 years ago • 0 comments
trafficstars

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 avatar Jun 04 '20 15:06 rubenghio