Issue 17785

Occurrence Inventories API doesn't support taxonKey

17785
Reporter: jlegind
Type: Bug
Summary: Occurrence Inventories API doesn't support taxonKey
Priority: Critical
Status: Open
Created: 2015-09-03 09:43:29.47
Updated: 2015-12-04 10:07:43.578
        
Description: The occurrence inventory service wrongly uses the parameter nubKey instead of the documented taxonKey:
http://www.gbif.org/developer/occurrence#inventories

http://api.gbif.org/v1/occurrence/counts/datasets?taxonKey=6
http://api.gbif.org/v1/occurrence/counts/datasets?nubKey=6

The metrics project should be modified to use the taxonKey parameter while keeping the nubKey param as an alias to provide backwards compatability
---
For more context; see mail from Eduardo Dalcin to api-user-list on 03-09-2015



]]>
    


Author: mdoering@gbif.org
Created: 2015-09-03 10:58:26.156
Updated: 2015-09-03 10:58:26.156
        
Stupid enough the parameter is called "nubKey" in the webservice:
http://api.gbif.org/v1/occurrence/counts/datasets?nubKey=6

We should change the service (not the docs) to use taxonKey as everywhere else
    


Author: mdoering@gbif.org
Created: 2015-09-03 10:59:44.525
Updated: 2015-09-03 11:00:06.49
        
But only one of the 2 parameters, country or taxonKey is supported. Supplying both will result in an illegal arg exception:
http://api.gbif.org/v1/occurrence/counts/datasets?nubKey=6&country=BR

That should be documented in the developer docs
    


Author: jlegind@gbif.org
Created: 2015-12-04 10:03:05.069
Updated: 2015-12-04 10:07:09.162
        
Looks like the taxonKey parameter is broken?
http://api.gbif.org/v1/occurrence/counts/datasets?taxonKey=212

-Scott

###Another frustrated user