Page 1 of 1

Response from REST Server code not working

Posted: Wed Mar 19, 2014 9:17 am
by Bad Addy

I have a Server code, and using the REST service I am invoking it. I am then having the response back into a javascript, and using the response. Looking at the docs, I cannot see how to do this.

I am using this in the server code:

response.success('true');

In the response of the rest in the app, I am using:

console.log(data);
or
console.log(response);

but seem to came back empty. I am mapping requestBody.

What is the correct syntax ?


Response from REST Server code not working

Posted: Wed Mar 19, 2014 3:34 pm
by Nikita

Hello,

Have you read this?
http://docs.appery.io/documentation/b...

You write code incorrectly. You shouldn't pass "true" in response.success.
Do you want to output response of server code in your application?