There's a possibility to append ?limit=0
phrase at the end of the API URL to make the query not limit the response. Is there any way to mae it a default behavior, e.g. http://my.api.com/resources/ (without ?limit=0) will return all resources?
As the documentation shows, you can use the limit
variable in the resource's Meta
class:
class FooResource(ModelResource):
class Meta:
limit = 0
Or you can set it for all models with the global settings variable API_LIMIT_PER_PAGE
.
class FooResource(ModelResource):
class Meta:
limit = 0
max_limit = 0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With