Hi Scott, indeed it only picks up one of the parameters. Looks like an oversight and probably one that is existing elsewhere too then ;) Ive logged an issue: https://github.com/gbif/checklistbank/issues/54
Markus
On 7. Feb 2018, at 22:37, Scott Chamberlain <myrmecocystus@gmail.commailto:myrmecocystus@gmail.com> wrote:
Hi folks,
Seems like the `/species` route is possibly misbehaving in certain cases. A user of rgbif reports https://github.com/ropensci/rgbif/issues/287 unexpected results. The same calls but with curl:
curl 'https://api.gbif.org/v1/species?datasetKey=73605f3a-af85-4ade-bbc5-522bfb90d...' | jq .results[].datasetKey | wc -l 10
curl 'https://api.gbif.org/v1/species?datasetKey=73605f3a-af85-4ade-bbc5-522bfb90d...' | jq .results[].datasetKey | wc -l 10
curl 'https://api.gbif.org/v1/species?datasetKey=d7c60346-44b6-400d-ba27-8d3fbeffc...' | jq .results[].datasetKey | wc -l 7
We'd expect the first curl request to return 17 results given the results of the datasetKey's individually. Not sure what is going on there. This route does appear to accept multiple instances of the same parameter, but not sure why the top curl call there doesn't return 17 results?
Best, Scott _______________________________________________ API-users mailing list API-users@lists.gbif.orgmailto:API-users@lists.gbif.org https://lists.gbif.org/mailman/listinfo/api-users