I am hosting an GAE Application and try to get Google Clound Endpoints to work. Now everything is setup and tested with curl:
curl http://localhost:8888/_ah/api/myendpoint/v1/queryData
Returns exactly 1 item which is correct:
{
"items" : [ {
"id" : "220",
"timestamp" : "1371475009682951",
"identifier" : "test1.0",
"value" : "523"
} ]
}
For no reason the same call through my JavaScript client returns nothing:
gapi.client.myendpoint.queryData().execute( function(result) {
console.log("result: " + result);
});
The output I get is:
result: [object Object]
What am I missing out? Thanks for your help.