Hi,

AFAIK you can use method *get() *to call REST.

http://jaggeryjs.org/documentation.jag?api=get



*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911


On Sat, May 17, 2014 at 12:34 PM, Samith Dassanayake <sam...@wso2.com>wrote:

> Hi,
>
> How we can make REST call from a serverside *.js file, in a Jaggery
> serverside app?
> For an example, my code looks like below
>
> *Foo.js*
>
> var bar = function(req, res) {
>
> // preprocessing
> foo();
>
> // REST call goes here
>
> }
>
> Thanks
> --
> Best Regards
>
> Samith Dassanayake
> Software Engineer, WSO2 Inc.
> Mobile: +94776207351
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to