Learn > On-device catalogs (device.json) > Paging PAGING (1/2) The firmware picks a paging mode from which variables your request uses (URL, body or headers): - neither {page} nor {offset} Mode: Static: the whole list comes in one response, and the reader pages through it locally {limit} =: page_size + 1 "Next page" appears when: more rows remain - {offset} (wins over {page}) Mode: Offset {limit} =: page_size + 1 "Next page" appears when: the server returned that extra lookahead row - {page} and {limit} Mode: Sized pages {limit} =: page_size "Next page" appears when: the page is full (a full last page leads to an empty next page) - {page} without {limit} Mode: Server page size {limit} =: page_size + 1 "Next page" appears when: the response has more than page_size rows Examples: // Static: a hand-written JSON file. Easiest. "url": "https://example.com/all-books.json" // Offset/limit APIs "url": "https://api.example.com/books?offset={offset}&limit={limit}" // page/per_page APIs "url": "https://api.example.com/books?page={page}&per_page={limit}" // One static file per page: books-1.json, books-2.json, ... // Each file except the last needs ONE extra row at the end // (for example a copy of the next file's first row) so the reader knows more exist. "url": "https://example.com/books-{page}.json" Next: 02 Paging (2/2)