flask-rest-jsonapi
flask-rest-jsonapi copied to clipboard
Allow relationships to be compared to scalars
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.
Coverage increased (+0.03%) to 90.801% when pulling e3e1fed23d271486dcc992692e465eee22f8db23 on TMiguelT:relationship-filter into b44bc08b11213d49fadae873650d3555889052ec on miLibris:master.