IDigBio API v1 Specification: Difference between revisions

add and clarify offsets →‎GET /v1/mediarecords
(add and clarify offsets →‎GET /v1/mediarecords)
Line 269: Line 269:
</pre>
</pre>


which includes links to the previous page ("offset=0") and the next page ("offset=10").
which includes links to the previous page and next page:
<pre>
      "idigbio:nextPage" : "http://api.idigbio.org/v1/mediarecords?limit=5&offset=10",
      "idigbio:prevPage" : "http://api.idigbio.org/v1/mediarecords?limit=5&offset=0"
</pre>
 
using offsets of 0 (previous page) and 10 (next page).


''DO NOT expect to be able to page through the entire iDigBio data this way.  See [[iDigBio API Performance]] if you find yourself trying to page through large amounts of data.''
''DO NOT expect to be able to page through the entire iDigBio data this way.  See [[iDigBio API Performance]] if you find yourself trying to page through large amounts of data.''
1,554

edits