colymba / silverstripe-restfulapi

SilverStripe RESTful API with a default JSON serializer.
BSD 3-Clause "New" or "Revised" License
64 stars 34 forks source link

default limit? #85

Closed nimeso closed 6 years ago

nimeso commented 6 years ago

Is there a default limit on records? eg: http://mysite/api/Point only returns like 200 records but http://mysite/api/Point?__limit=1000 will return them all.

colymba commented 6 years ago

Yes there is a default which should be 100: https://github.com/colymba/silverstripe-restfulapi/blob/master/doc/DefaultQueryHandler.md

You can have it set via the config for all requests or via query Param like you found.