1,554
edits
(add screenshot of thumbnail and thumbnail into new section →Fetch five MediaRecord IDs (endpoints) from the API) |
|||
Line 785: | Line 785: | ||
=== Display a thumbnail image for a mediarecord === | === Display a thumbnail image for a mediarecord === | ||
Let's say we wish to display a thumbnail image for the 3rd mediarecord in the previous result list (highlighted in the screenshot). We will use the media endpoint for that mediarecord's GUID and add the "quality" parameter with "thumbnail" as the value: | Let's say we wish to display a thumbnail image for the 3rd mediarecord in the previous result list (highlighted in the previous screenshot). We will use the media endpoint for that mediarecord's GUID and add the "quality" parameter with "thumbnail" as the value: | ||
http://api.idigbio.org/v1/mediarecords/00002091-4fb3-410a-9307-bd3e917dfcca/media?quality=thumbnail | http://api.idigbio.org/v1/mediarecords/00002091-4fb3-410a-9307-bd3e917dfcca/media?quality=thumbnail |
edits