desire2learn - Valence pagination of get requests -
i've got several questions pagination.
- can pagination forced?
- can pagination controlled (eg request pages of 200 records)?
- if answers 1 & 2 no, threshold when pagination happens?
- is pagination stable (same number of records on same entity either paginated or not paginated)?
thanks,
vlad
pagination forced when gets used on particular api call: no matter how many records finds, call alway returns data in pages. cannot request pagination on calls not default paginate. call either paginates or not.
you cannot request change size of data pages; number of records returned in each page in paged set fixed each call using pages (in theory page size can vary each such call, in practice, (currently) not).
there no threshold: either data in call returned in paged result set, or not. if number of matching results less page size, call should still return single data page within paged result set structure, property set indicate no further data pages available.
yes, stable: can rely call paged results return paged results, , number of results returned in page remain static (as long product version service not change: product upgrades may alter size of data pages in paged results).
you should not write code cannot cope change in page size or needs know page size (because can change new product version without change api contract version), safe write code assumes returns api call a paged (if docs returns paged results).
Comments
Post a Comment