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

Add limit parameter #46

Open
jonysy opened this issue Aug 20, 2020 · 1 comment
Open

Add limit parameter #46

jonysy opened this issue Aug 20, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jonysy
Copy link

jonysy commented Aug 20, 2020

Hi, the current limit when fetching species/plants is 20. It would be useful to have more control over this by having the limit parameter exposed as part of the API, which would be optional and would default to 20.

Example

https://trefle.io/api/v1/plants?token=<Token>&limit=6

@jonysy jonysy added the enhancement New feature or request label Aug 20, 2020
@jonysy jonysy changed the title Add limit parameter for fetching species/plants Add limit parameter Aug 21, 2020
@lambda2
Copy link
Member

lambda2 commented Aug 24, 2020

Hey @jonysy, unfortunately we're currently running Trefle in small servers, and can't allow too heavy responses as it will slow down everybody. So in order to ensure a quality service to all users, we prefer to limit to 20 results.
For limiting results to less than 20 items, we could indeed add a limit parameter, I'll add that to the backlog !

@lambda2 lambda2 added this to the 1.6.1 milestone Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants