RestPack / restpack_serializer

Model serialization, paging, side-loading and filtering
MIT License
175 stars 43 forks source link

Implicit model filtering #5

Closed GavinJoyce closed 11 years ago

GavinJoyce commented 11 years ago

Support implicit model filtering on:

Filtering will work as follows:

GET /albums.json?ids=1,2,3,4 will return four albums

GET /albums.json?artist_id=10 will return a page of albums for artist_id=10

GET /albums.json?artist_id=10&genre_ids=2,3,4 will return a page of albums for artist_id=10 which have a genre of either 2, 3 or 4

GET /albums.json?artist_ids=10,11,12 will return a page of albums for three artists

GavinJoyce commented 11 years ago

https://github.com/RestPack/restpack-serializer/pull/10