w3c / w3c-api

The W3C API
https://w3c.github.io/w3c-api/
214 stars 92 forks source link

Invalid JSON returned when API key is absent or wrong #23

Closed tripu closed 9 years ago

tripu commented 9 years ago

Quotes are missing from one of the properties of the returned object:

$ curl https://api-test.w3.org/domains/41381

{
    "message": Missing API key,
    "documentation_url": "https://github.com/w3c/w3c-api"
}

$ curl https://api-test.w3.org/domains/41381?apikey=foo

{
    "message": Invalid API key,
    "documentation_url": "https://github.com/w3c/w3c-api"
}
deniak commented 9 years ago

Good catch. Fix deployed.