IDigBio API v1 Examples: Difference between revisions

Jump to navigation Jump to search
(move paging example here so it can be removed from the specification)
Line 755: Line 755:
[[File:Screenshot_jsonview_idigbio_api_mediarecords_limit_offset.png]]
[[File:Screenshot_jsonview_idigbio_api_mediarecords_limit_offset.png]]


=== Paging through API lists ===
=== Paging through the API ===
 
Endpoints that return a list of entities may have more total items than are able to be "fit" in a single request.  For example, trying to fetch the list of all records in iDigBio will surely timeout in the browser before it is completed (and would put undue load on the server infrastructure).
 


Request 5 media record entities:
Request 5 media record entities:
Line 898: Line 901:


;TO DO One more paging to help differentiate these multiples of 5.
;TO DO One more paging to help differentiate these multiples of 5.


=== Display a thumbnail image for a mediarecord ===
=== Display a thumbnail image for a mediarecord ===
1,554

edits

Navigation menu