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

Allow relationships to be compared to scalars

Open multimeric opened this issue 6 years ago • 2 comments
trafficstars

This is based on the recommendations part of the spec, which lets you do things like: GET /comments?filter[post]=1, even though filter[post] isn't actually an integer.

In addition, I've allowed queries like filter[id]=1,2,3, which internally is converted into a has operator.

I added tests for these changes.

multimeric avatar Nov 21 '19 08:11 multimeric

Coverage Status

Coverage increased (+0.03%) to 90.801% when pulling e3e1fed23d271486dcc992692e465eee22f8db23 on TMiguelT:relationship-filter into b44bc08b11213d49fadae873650d3555889052ec on miLibris:master.

coveralls avatar Nov 21 '19 08:11 coveralls

Coverage Status

Coverage increased (+0.07%) to 90.845% when pulling 8ec2aad21653c7b11e2e0c05f02647647f0473b7 on TMiguelT:relationship-filter into b44bc08b11213d49fadae873650d3555889052ec on miLibris:master.

coveralls avatar Nov 21 '19 08:11 coveralls