Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination and size limits #20

Open
shroffk opened this issue Apr 28, 2017 · 0 comments
Open

Pagination and size limits #20

shroffk opened this issue Apr 28, 2017 · 0 comments

Comments

@shroffk
Copy link
Contributor

shroffk commented Apr 28, 2017

In order to protect the client from receiving a lot more data than they can handle it is best to support a size restriction. Additionally it might be nice to have pagination support in channelfinder to allow clients to safely page through large queries

~size
Indicates the number of results that should be returned, defaults to 10000
~from
Indicates the number of initial results that should be skipped, defaults to 0

The ~size used alone will simply function as a max upper limit on the result size.

When using pagination, ChannelFinder will sort the result based on the channel name.

e.g,
channels/~name=*&~size=100&~from=10

Will return 100 channels, starting from the 10th channel when sorted by channel name.

@berryma4 @Dylan171 @ralphlange

shroffk added a commit that referenced this issue Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant