trefle-api icon indicating copy to clipboard operation
trefle-api copied to clipboard

Add `limit` parameter

Open jonysy opened this issue 5 years ago • 1 comments

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 avatar Aug 20 '20 23:08 jonysy

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 avatar Aug 24 '20 16:08 lambda2