rpkilby / dj-jsonapi

A JSON-API server implementation built for Django on top of Django Rest Framework
Other
0 stars 1 forks source link

API filtering should live under the `filter` query param #6

Closed rpkilby closed 9 years ago

rpkilby commented 9 years ago

DRF has a default filtering class based around Django style lookups. ie,

http://example.com/api/comments?post_lt=4&author=10

JSON-API specifies that filters need to live under the filter query param. ie,

http://example.com/api/comments?filter[post__lt]=4&filter[author]=10

Additional filtering recommendations.

A few thoughts:

rpkilby commented 9 years ago

Fixed by 65b4d2f46fc253095051da819d8c1da3bfe3a209