desire2learn - Valence pagination of get requests -


i've got several questions pagination.

  1. can pagination forced?
  2. can pagination controlled (eg request pages of 200 records)?
  3. if answers 1 & 2 no, threshold when pagination happens?
  4. is pagination stable (same number of records on same entity either paginated or not paginated)?

thanks,

vlad

  1. 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.

  2. 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).

  3. 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.

  4. 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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -