has('spec')) { header('Content-Type: application/json'); $apigen = new OpenAPIGenerator(); echo $apigen->generate(); exit(); } ?> DokuWiki API Explorer

This is an auto generated description and OpenAPI specification for the DokuWiki JSON-RPC API. It is generated from the source code and the inline documentation.

Download the API Spec

Error Codes

The following error codes are currently used in the core methods. This list may be incomplete or change in the future.

getErrorCodes() as $code) { // duplicate codes are only shown with debug if ($code['code'] === $last && !$INPUT->has('debug')) continue; $last = $code['code']; echo ''; } ?>
CodeMessage
0Success
' . $code['code'] . '' . hsc($code['message']) . '

server->has('REMOTE_USER')) { echo 'You are currently logged in as ' . hsc($INPUT->server->str('REMOTE_USER')) . '.'; echo '
API calls in this tool will be automatically executed with your permissions.'; } else { echo 'You are currently not logged in.
'; echo 'You can provide credentials above.'; } ?>