Talk:IDigBio API: Difference between revisions

kill the call to version endpoint since output includes so many useless types (no data or not really implemented API)
(more work...)
(kill the call to version endpoint since output includes so many useless types (no data or not really implemented API))
Line 54: Line 54:




Calling just the base URL will return a list of API version endpoints. For example a GET request to "http://api.idigbio.org" will return JSON data like the example below. 
Calling just the base URL will return a list of API version endpoints. For example a GET request to "http://api.idigbio.org" will return the following JSON data:


<pre>
<pre>
Line 61: Line 61:
   "check" : "http://api.idigbio.org/check",
   "check" : "http://api.idigbio.org/check",
   "v0" : "http://api.idigbio.org/v0/"
   "v0" : "http://api.idigbio.org/v0/"
}
</pre>
and calling a version URL endpoint will return a list of major data types available for that version.  For example, for v1 of the API a GET request to ' http://api.idigbio.org/v1" will return:
<pre>
{
  "aggregates" : "http://api.idigbio.org/v1/aggregates",
  "records" : "http://api.idigbio.org/v1/records",
  "mediaaps" : "http://api.idigbio.org/v1/mediaaps",
  "taxa" : "http://api.idigbio.org/v1/taxa",
  "people" : "http://api.idigbio.org/v1/people",
  "organizations" : "http://api.idigbio.org/v1/organizations",
  "recordsets" : "http://api.idigbio.org/v1/recordsets",
  "mediarecords" : "http://api.idigbio.org/v1/mediarecords"
}
}
</pre>
</pre>
1,554

edits