XWiki API (for managing extensions)

Is there a REST API to manage (list, add, remove, configure) Xwiki-extensions?

We have Xwiki-17.10.2 installation, and we would like to install and configure our xwiki-platform non-interactively as part of our DevOps-toolchain. This requires that we can install all required extensions (and other stuff too) by build engine or scripted with API-calls from Linux-server that is running our Xwiki in Tomcat-10 application server,

I’ve been searching info from the documention linked below, but don’t seem to find such a dedicared API-endpoint for managinf extensions. There seems to be only a job script interface to extensions management..

https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI#HAccessingtheservice

I feel we’re lacking simple REST endpoints for this.

We do have a generic Job REST endpoint for starting a job, see https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI#HJobresources which contains an example of how to use it to install an extension.

1 Like