Search Mailing List Archives
[bioontology-support] Questions regarding the REST API
john.zobolas at ntnu.no
Fri Mar 1 05:52:39 PST 2019
Glad to be of help :)
I had a question by the way related to this. When I query:
http://data.bioontology.org/ontologies/T vs http://data.bioontology.org/ontologies/<http://data.bioontology.org/ontologies/T>G (in both cases I was trying to get an error), the format is the same, but you get a different type of error string ("access denied" vs "no valid acronym") and I was wondering why that is.
From: Michael Dorf <mdorf at stanford.edu>
Sent: Friday, March 1, 2019 12:40 AM
To: John Zobolas
Cc: support at bioontology.org
Subject: Re: [bioontology-support] Questions regarding the REST API
Thank you, that's a great catch! Indeed, the error response should have a consistent output, and what you're seeing is a bug. I've logged it here:
Thanks again for your report. We very much appreciate it!
On Feb 28, 2019, at 3:54 AM, John Zobolas <john.zobolas at ntnu.no<mailto:john.zobolas at ntnu.no>> wrote:
* "status": 401,
* "error": "You must provide a valid API Key. Your API Key can be obtained by logging in at bioportal.bioontology.org/account<http://bioportal.bioontology.org/account>"
which is different than the "standard" you mention:
* "The search query must be provided via /search?q=<query>[&page=<pagenum>&pagesize=<pagesize>]"
* "status": 400
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the bioontology-support