I’m investigating the ability of XWiki to automate instantiating new subwikis. I figured it might be a good use case for the REST API. I was able to run some basic tests with the API like page creations and blog post creations. I noticed this section for wikimanager
/wikimanager (This resource is only available when using the multi-wiki feature)
HTTP Method: POST
Accepted Media types:
application/xml (Wiki element)
Media types:
application/xml (Wiki element)
Query parameters
template - the wiki template to be used for initializing the wiki.
history={RESET/REPLACE/ADD} - history importing
Description: create a new wiki.
Status codes:
200: If the request was successful.
on this page https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI#HXWikiRESTfulAPIDocumentation, which sounds like what I would want. I have the Wiki Application installed (running XWiki 10.6 in a test Docker instance) but not seeing anything meaningful when I hit this basic endpoint http://localhost:8080/rest/wikimanager
— just a Not Found page.
Am I missing something or did the documentation get cutoff? Looking at the accepted media types, I was trying to figure out how a curl URL could be assembled but not seeing which XML properties correspond to creating new subwikis.
Is there a better way to automate subwiki instantiation? Any help would be greatly appreciated.