On Mon, Jun 25, 2012 at 7:46 PM, Ludovic Dubost
<ludovic(a)xwiki.com> wrote:
While working on a prototype on a HTML5 mobile
and desktop application
I've hit a few limitations of the REST APIs.
This is why I propose some enhancements to the current REST APIs to
give more flexibility, particularly:
Support for start and order parameter in queries returning large
list of pages
For complete and easy pagination it would be nice to support/get at
least the following for anything that return a list of anything:
* start
* offset
* optional totalHits
like Extension Repository REST API does. See
https://github.com/xwiki/xwiki-commons/blob/master/xwiki-commons-core/xwiki…
Support order parameter in page list
Adding page version, author information and data information when missing
+1
Hidden documents filter activation or
deactivation in REST APIs
+1
Adding pretty display of title and author
names
Only if it's disabled by default and you can enable it with a
parameter. This is potentially pretty expensive and not everyone needs
it when dealing with pure datas through REST.
Support queries using XWQL, HQL and Lucene
Big +1.
This one is definitely a very important missing peace in REST API.
The rendered content should be accessible from
REST apis
Note that getting the rendered content of a document in any output
syntax can be done easily with /get/ action right now.
Yes that's true, but it does not feel right that you need to go to the
other XWiki URLs.