garden-stream / garden

shared resources
0 stars 2 forks source link

Paginate results #5

Closed keawade closed 4 years ago

keawade commented 7 years ago

We probably need to paginate results so when this grows to thousands or more of items/users returning from an endpoint we don't make our clients/server cry.

NathanBland commented 7 years ago

What are you purposing the initial return limit be? 10, 100, 1000? I'd like to keep it consistent for all the endpoints

keawade commented 7 years ago

Doesn't matter to me. Probably 10 is probably too low, 100 too high. 25 seems good?

NathanBland commented 7 years ago

Thinking about this more, I'll probably make it dynamic, with the ability to set your limiter, up to a certain amount.

keawade commented 7 years ago

Sounds good. A default value would be handy though.