1,554
edits
(add links to images →Advanced Elasticsearch Examples) |
(changing to search example →Curculionidae Image Example) |
||
Line 971: | Line 971: | ||
''Note that the final image URL should not be considered stable or permanent. Images can be moved around to various storage platforms. The Mediarecord has a UUID that will remain contstant but the containing data, including the image location, may be updated over time.'' | ''Note that the final image URL should not be considered stable or permanent. Images can be moved around to various storage platforms. The Mediarecord has a UUID that will remain contstant but the containing data, including the image location, may be updated over time.'' | ||
=== Curculionidae | === Curculionidae Search Example === | ||
Let us say we | Let us say we are looking for an image of a particular Curculionidae specimen (a family of weevils). | ||
If we already know the iDigBio UUID of the specimen we can simply use the /media endpoint for the record: | |||
<code> | <code> | ||
http://api.idigbio.org/v1/records/354210ae-4aa3-49d2-8a66-78a86b019c7b/media?quality=webview</code> | |||
</code> | </code> | ||
But how did we find the proper iDigBio UUID for this specimen record in the first place? | |||
and receive the following JSON document from the API (in this case, formatted for readability): | and receive the following JSON document from the API (in this case, formatted for readability): | ||
Line 1,040: | Line 1,039: | ||
} | } | ||
</pre> | </pre> | ||
=== Advanced Elasticsearch Examples === | === Advanced Elasticsearch Examples === |
edits