I am trying to evaluate total.js as the MVC framework for our project. Is there a direct library available using which we can invoke a WEB API and parse the response?Basically my portal will be a client to an external restful web service.
I know we have a module node-rest-client which we can use but do we have something available in total.js so that I don't have to download a module?
Thanks & Regards
Shashi
Utils.request('http://www.totaljs.com/test.json', ['get'], function(err, data, status, headers) {
console.log(JSON.parse(data));
});
Utils.request('http://hroch486.icpf.cas.cz/cgi-bin/echo.pl', ['json', 'put'], { name: 'OK' }, function(err, data) {
console.log(err, data);
});