[xwiki-devs] How to get all versions of an attachment via XML-RPC?
Hello, we are developing an application which uses the XML-RPC API of XWiki. It is the only way to get to the data stored in the wiki in our case (except DB access, which we want to avoid in first place). In our data model there is a media entity which serves as a container for the revisions of this given media entity. That means I need all the versions of an attachment, not just the current/latest version. I do not see a way to get to these data via the XML-RPC client interface. Is there a way to get all the versions of an attachment? And if so, is there also a way to determine the version number of a given attachment? Thx in advance for your answers!
On 07/26/2010 05:36 PM, Wolfgang Philipp wrote:
Hello,
we are developing an application which uses the XML-RPC API of XWiki. It is the only way to get to the data stored in the wiki in our case (except DB access, which we want to avoid in first place). In our data model there is a media entity which serves as a container for the revisions of this given media entity. That means I need all the versions of an attachment, not just the current/latest version.
I do not see a way to get to these data via the XML-RPC client interface. Is there a way to get all the versions of an attachment? And if so, is there also a way to determine the version number of a given attachment?
Unfortunately the XML-RPC API doesn't support this at the moment. You could report a feature request on http://jira.xwiki.org/ for this, since implementing what you need is not difficult. Hope this helps, Thanks
Thx in advance for your answers! _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
From my recollection of the XML-RPC API I don't think this is possible. I find it is much easier to create a document with script in it and call that script passing parameters and have the script get what you need in the internal wiki API and return it to you through the HttpServletResponse object. This of course would mean abandoning XML-RPC but I think it gives you much more flexibility.
Caleb Wolfgang Philipp wrote:
Hello,
we are developing an application which uses the XML-RPC API of XWiki. It is the only way to get to the data stored in the wiki in our case (except DB access, which we want to avoid in first place). In our data model there is a media entity which serves as a container for the revisions of this given media entity. That means I need all the versions of an attachment, not just the current/latest version.
I do not see a way to get to these data via the XML-RPC client interface. Is there a way to get all the versions of an attachment? And if so, is there also a way to determine the version number of a given attachment?
Thx in advance for your answers! _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (3)
-
Caleb James DeLisle -
Marius Dumitru Florea -
Wolfgang Philipp