I'm getting an error trying to test a basic server code script using x-www-form-urlencoded:
{
"status":"400 Bad Request",
"url":"https://api.appery.io/rest/1/code/593...",
"response":{
"code":"BCXX002",
"description":"Cannot consume content type"
}
}
server code script =
var body = request.body(); //Saving the request body
var name = request.get("name"); //Saving the request parameter "name"
response.success(name + ":" + "\n" + body); //Output them both
What am I doing wrong?