Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error output inconsistency #55

Open
mdorf opened this issue Feb 28, 2019 · 0 comments
Open

Error output inconsistency #55

mdorf opened this issue Feb 28, 2019 · 0 comments

Comments

@mdorf
Copy link
Member

mdorf commented Feb 28, 2019

Per a report from a user: when no proper API key is used, you get a result back in the form:

{
	"status": 401,
	"error": "You must provide a valid API Key. Your API Key can be obtained by logging in at bioportal.bioontology.org/account"
}

which is different than the "standard":

{
	"errors": [
		"The search query must be provided via /search?q=<query>[&page=<pagenum>&pagesize=<pagesize>]"
	],
	"status": 400
}

The correct way is to specify the "errors" as a collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant