[xwiki-users] Using a REST Query to see objects
Hi, I've created an application using the app within minutes feature and I've been trying to get the data from the app using REST. However I can't see the objects in the xml/json unless I'm authenticated as the admin. Is there a way to allow anonymous users to see the objects? Regards, Sunil
Which REST resources did you try? These http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HObjectres... work for me when I'm logged out: /xwiki/rest/wikis/xwiki/spaces/Blog/pages/BlogIntroduction/objects /xwiki/rest/wikis/xwiki/spaces/Blog/pages/BlogIntroduction/objects/Blog.BlogPostClass/0 Hope this helps, Marius On Wed, Jan 29, 2014 at 4:10 AM, Sunil Khiatani <[email protected]> wrote:
Hi,
I've created an application using the app within minutes feature and I've been trying to get the data from the app using REST. However I can't see the objects in the xml/json unless I'm authenticated as the admin. Is there a way to allow anonymous users to see the objects?
Regards,
Sunil _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Marius, Sorry I forgot to mention, I used a hql query to find all the objects of a specific class using this REST resource: /wikis/{wikiName}/query?q={query}&type=hql,xwql,lucene}[&distinct={true,false}]~[&order={asc,desc}][&start=n][&number=n][&prettyNames={true,false}][&className=className] Regards, Sunil
On Wednesday, January 29, 2014 3:34 PM, Marius Dumitru Florea <[email protected]> wrote:
Which REST resources did you try? These http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HObjectres... work for me when I'm logged out:
/xwiki/rest/wikis/xwiki/spaces/Blog/pages/BlogIntroduction/objects /xwiki/rest/wikis/xwiki/spaces/Blog/pages/BlogIntroduction/objects/Blog.BlogPostClass/0
Hope this helps, Marius
On Wed, Jan 29, 2014 at 4:10 AM, Sunil Khiatani <[email protected]> wrote:
Hi,
I've created an application using the app within minutes feature and I've been trying to get the data from the app using REST. However I can't see the objects in the xml/json unless I'm authenticated as the admin. Is there a way to allow anonymous users to see the objects?
Regards,
Sunil _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Marius Dumitru Florea -
Sunil Khiatani