IDigBio API v1 Examples: Difference between revisions

Line 679: Line 679:
=== Fetch an Older Version of a Particular Record ===
=== Fetch an Older Version of a Particular Record ===


Consider an iDigBio Media Record "idigbio:uuid" : "ff5fd841-6bc6-4241-80d3-def7e1b6d5e8" that has been updated over time so there are multiple revisions of the record.  The API shows that the current version of this particular record is version 1.
Consider an iDigBio Media Record that is identified by:
 
<pre>
"idigbio:uuid" : "ff5fd841-6bc6-4241-80d3-def7e1b6d5e8"
</pre>
 
This record has been updated over time so there are multiple revisions of the record preserved in the APIWe can find that the most recent (e.g. "current") version of this particular record is version 1:


<pre>
<pre>
Line 686: Line 692:
</pre>
</pre>


We would like to look at the previous version (version 0) to see what has changed. We do this by adding <code>?version=0</code> as a parameter to the URL.
We would like to look at the previous version (version 0) to see what has changed. We do this by adding the "version" parameter to the url:
 
<pre>
?version=0
</pre>
 
The full curl command to request version 0 of a record:


<pre>
<pre>
1,554

edits