On Fri, May 27, 2016 at 4:46 PM, Mark Sack <mark.s...@secti.al.gov.br> wrote:
> For some reason, I can't get the select query to work as HQL either. I > picked > a simple query (as a test) from > http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples > and confirmed that it works in a velocity script in a test page. > > But when I try to use the same query in the rest interface, the response is > as follows: > > Not Found > > The server has not found anything matching the request URI > > You can get technical details here. > Please continue your visit at our home page. > > The rest url I used is as follows: > > > ../rest/wikis/xwiki/query=q?select+obj.name > +from+BaseObject+obj+where+obj.className%3D%27XWiki.XWikiUsers%27&type=hql > I just said you cannot use full statements :). This works for me /xwiki/rest/wikis/xwiki/query?q=where+doc.space=%27Main%27&type=hql and this also /xwiki/rest/wikis/xwiki/query?q=,+BaseObject+as+obj+where+doc.fullName+%3D+ obj.name+and+obj.className+=+%27XWiki.XWikiUsers%27&type=hql See http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module . Hope this helps, Marius > > Regards > Mark Sack > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/REST-API-ignores-type-parameter-tp7599586p7599695.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users