vapor-community / pagination

Simple Vapor 3 Pagination
MIT License
64 stars 15 forks source link

Get all per page #23

Open LinusGeffarth opened 5 years ago

LinusGeffarth commented 5 years ago

Motivation Behind Feature Sometimes, a frontend might want to get all items on a single page.

Feature Description I'd like to pass a special value for the per parameter.
This could be ?per=all, or ?per=-1, although I'd prefer the all version b/c it's more legible.

Alternatives or Workarounds Something that'd work rn would be to pass ?per=999999, but that doesn't really look so elegant to me 🙂

anthonycastelli commented 5 years ago

I've been away for the past few months, but since this project is now going to merge with Fluent 4, I'll definitely look into implementing something like this