Re: [xwiki-users] Javascript RESTful

2015-04-06 Thread Marius Dumitru Florea
You overcomplicate it by specifying all those optional parameters. This works for me: require(['jquery'], function($) { $.get(XWiki.contextPath + '/rest').done(function(data) { console.log(data); }); }); Hope this helps, Marius On Sat, Feb 21, 2015 at 1:11 PM, Matthias Wegner

[xwiki-users] Javascript RESTful

2015-02-21 Thread Matthias Wegner
Hello, i like the REST-API and have a library in Java which works perfect. Now i want to use the RESTful API in Javascript. But i am new to javascript and tried a lot, but nothing seems to work. Is there a simple example in javascript with the rest-api? I don't get what i am doing wrong, because