Pagination
To improve the performance of web applications, a “pagination” system is commonly used. The list is divided into pages that are shown to the user, who can switch between them.
Pagination is controlled by URL parameters:
| Parameter | Description | Example |
|---|---|---|
limit |
Maximum number of records per page. The value 0 returns all records without limit and, unless specified otherwise, it is the default. |
/c/12345/moto.xml?limit=10 |
start |
How many records to skip. Does not depend on the parameter limit. |
/c/12345/moto.xml?start=5&limit=10 |
add-row-count=true |
If you specify this parameter, the number of records in the given agenda is added to the output (takes the applied filters into account). | /c/12345/moto.xml?add-row-count=true |
Exception: ad table
The ad table (/c/{dealer ID}/stats/{moto|dily|prislusenstvi}) paginates differently:
limithas the default value500and a maximum of5000.limit=0and alimitabove5000both mean5000, not “without limit”; you get further rows viastart. A value other than a non-negative integer returns400.- The number of records
rowCount(after the filter) is returned by the table always, regardless ofadd-row-count. It tells you whether you need to paginate.
