ncbi / datasets

NCBI Datasets is a new resource that lets you easily gather data from across NCBI databases.
https://www.ncbi.nlm.nih.gov/datasets
Other
355 stars 39 forks source link

Many REST API examples fail on the documentation page #347

Open ialbert opened 5 months ago

ialbert commented 5 months ago

If one goes to the REST API documentation for this tool

It contains a comprehensive list of links on how to use the REST API.

Try the first example:

/genome/accession/{accession}/annotation_report

Click TRY, or use the CURL example

Produces the error

{
  "error": "Not Found",
  "code": 404,
  "message": "Your request is invalid. (For more help, see the NCBI Datasets Documentation at https://www.ncbi.nlm.nih.gov/datasets/docs/)"
}

then I noticed the query is empty, I fill in with a GCF_000001635.27 I get another error:

{
  "error": "Bad Request",
  "code": 400,
  "message": "Invalid argument provided: 'invalid path: \"sort\" is not a message'. (For more help, see the NCBI Datasets Documentation at https://www.ncbi.nlm.nih.gov/datasets/docs/)"
}

I randomly tried a number of other example, some failed, some produced no output, a few succeed.

olearyna commented 5 months ago

Hi ialbert,

You're correct; many of the examples are not functioning properly. We are addressing the issue and will notify this thread once corrections have been made.

Thanks, Nuala