monarch-initiative/biolink-api

Query with content-type : application/json returns 400 status code

Opened this issue · 1 comments

What is the use case for passing 'application/json' for url encoded parameters? The content type header should be application/x-www-form-urlencoded.

I suspect if you set up a POST request in the api code and passed JSON data this would all work, eg

curl -X POST "https://api.geneontology.org/api/some/function" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{ some json }"