gbif / gbif-api

GBIF API
Apache License 2.0
27 stars 5 forks source link

`techdocs.gbif.org`: Type mismatch for occurrence api #117

Closed mpitblado closed 3 months ago

mpitblado commented 5 months ago

URI that this issue occurred on: https://techdocs.gbif.org/en/openapi/v1/occurrence#/Occurrences/getOccurrenceByDatasetKeyAndOccurrenceId

I noticed on the technical documentation site that the parameters for /occurrence/{datasetKey}/{occurrenceId} are documented as integer($int64) but are listed to take UUID keys that are string format. Trying to use the "try it out feature" results in the site producing an error when the user submits the examples supplied for the GET request.

Documentation API documentation screenshot showing the GET request form

Try it out feature after submitting GET request with pre-filled examples API documentation screenshot showing the error message that results from submitting the example parameters

marcos-lg commented 5 months ago

Fixed in the code and in dev: https://github.com/gbif/occurrence/commit/391dc3a0bd0a83c14a5def2c76860d9f78412f29.

Just needs deployment in UAT and production.

marcos-lg commented 3 months ago

Deployed