OpenML
OpenML copied to clipboard
JSON endpoint can return XML
Querying https://www.openml.org/api/v1/json/data/tag?data_id=2&tag=test&api_key=000 results in an error in XML, instead of JSON. Note that this is not the case for all errors, e.g. https://www.openml.org/api/v1/json/data/24567890 shows the error in JSON format.
Added openml_OS/views/pages/api_new/v1/json/error-message.tpl.php to for consistent JSON-formatted error responses... pls check and do let me know what can be changed/improved