vasanthv / jsonbox

HTTP-based JSON storage.
https://jsonbox.io
MIT License
2.49k stars 173 forks source link

Max Records in box 20 #77

Closed christianpappenberger closed 3 years ago

christianpappenberger commented 3 years ago

Hello guys, I am experiencing a weird behavior. Whenever I am putting more than 20 records into a box the oldest one is removed so that the max records is never above 20 entries. Has somebody the same problem? Chris

vasanthv commented 3 years ago

@christianpappenberger Hi, get method is paginated. The default limit is 20, you can define a limit. Try this like: https://jsonbox.io/box_36abd34548a4d6c91dae which returns just the first 20 records in the box. I can get more records by setting limit param: https://jsonbox.io/box_36abd34548a4d6c91dae?limit=30

This is documented here: https://github.com/vasanthv/jsonbox#read