1,554
edits
(replace image →GET /v1/records/{ID}/media) |
|||
Line 632: | Line 632: | ||
;Sample Usage | ;Sample Usage | ||
Request a thumbnail image for a mediarecord with iDigBio UUID of <code>00002091-4fb3-410a-9307-bd3e917dfcca</code> by issuing an HTTP "GET" to the following URL: | |||
<pre> | <pre> | ||
http://api.idigbio.org/v1/mediarecords/00002091-4fb3-410a-9307-bd3e917dfcca/media?quality=thumbnail | |||
</pre> | </pre> | ||
The response to the above URL is a series of HTTP Redirects that lead to a thumbnail image, illustrated here with the Firefox Web Developer Tools visible: | |||
[[File:Screenshot_firefox_webdevtools_thumbnail_specimen_182c9260-0151-454a-a648-4d58ddf51bd8.png]] | |||
''Note that the final image URL should not be considered stable or permanent. Images can be moved around to various storage platforms. The iDigBio UUID of the Specimen Record (or in this case, the associated Media Record) will remain constant, but the containing data, including the image locations, may change over time.'' | |||
---- | ---- |
edits