Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Response from REST Server code not working

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 ?

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Response from REST Server code not working

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?

Return to “Issues”