Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5028

Calling api from script

$
0
0

Looks like the correct syntax to call platform.api.* function in nodeJS is

platform.api.get('/db/_table/todo', '', function(body, response){
    event.setResponse(JSON.parse(body), response.statusCode, 'applicaton/json');
});

according to this URL http://wiki.dreamfactory.com/DreamFactory/Tutorials/Node_API_example
is there any reason why the documentation for server-side scripting is inconsistent?


Viewing all articles
Browse latest Browse all 5028

Trending Articles