kahmali / meteor-restivus

REST APIs for the Best of Us! - A Meteor 0.9+ package for building REST APIs https://atmospherejs.com/nimble/restivus
MIT License
544 stars 116 forks source link

Paging / chunking / limiting the number of items returned via query params #124

Open dandv opened 9 years ago

dandv commented 9 years ago

For large collections, it becomes highly practical to page through the results.

I'd propose start and count as supported default parameters, because they're used in UI frameworks like Webix to have widgets like tables/grids load data dynamically from the server.

kahmali commented 9 years ago

This is a good suggestion. I'll look into the best way to implement this and get back to you this weekend. v0.9 is all about modularizing restivus. I'll probably move collection support into a separate package, and this would exist there, or possibly in its own layer of middleware, or maybe somewhere in between. I've just been extra busy recently, but I'll try to give restivus a little attention this weekend.

This relies on #70.