jamesallardice / jslint-error-explanations

:memo: Explanations of all the (sometimes cryptic) error messages thrown by JSLint and JSHint
http://linterrors.com
293 stars 35 forks source link

Problem invoking /lint endpoint in API #37

Open kapang07 opened 8 years ago

kapang07 commented 8 years ago

When invoking the API's /lint request endpoint, I seem to be always getting a 400 error saying: "Missing parameter: code"

This is despite providing the "code" or "c" as a parameter in a json body to the url as POST or GET request to: http://api.jslinterrors.com/lint and providing "application/json" as the "Content-type" in the header.

{ "c": "var b = 1;" }

OR

{ "code": "var b = 1;" }