Rest API - Pagination Patterns
You have this code snippet for pagination parameters:
What is the error if
page = int(request.GET.get('page', 1))
limit = int(request.GET.get('limit', 10))
start = (page - 1) * limit
end = page * limit
items = data[start:end]What is the error if
page is 0?