This is a Dokuwiki plugin that implements a rest API for Dokuwiki in order to use DokuWiki as a backend Content Management System (CMS).
All requests are made with the public
permissions (ie @ALL group)
pages
returns a list of all pages
http://localhost:81/lib/exe/ajax.php?call=api&fn=pages&limit=10
Request Query parameters:
limit
: the max number of pages (known also under pagename)
page
returns much more information on a page than pages
http://localhost:81/lib/exe/ajax.php?call=api&fn=page
Query parameters:
id
: the page id (known also under pagename)
The following configuration have an impact on the export. As they are defined as constant inside DokuWiki, you can't update them on the fly. You need to change them in your configuration.
If you want relative URL in the exported HTML. See https://www.dokuwiki.org/config:canonical
See https://www.dokuwiki.org/config:basedir The DOKU_BASE constant.
Used in the wl
function of the common.php
file to create a link.
RemoteApi
dokuwiki class was renamed toAPI
- Php8 ready
- The Xml Call does not take
pagename
as array key