code style: line breaks
update some plugin classes in phpdocs, reformatting
recover comments in list
codestyle adjustments: function declaration braces/spaces
apply PSR-12 constant visibility rulePSR-12 says constants need their visibility declared from PHP 7.1onwards
relax instance check in remoteAPI loadingThis broke tests. Ideally an Interface should be defined that both thereal APICore and the TestPlugin implement.
Apply rector fixes to inc/Remote
check XMLRPC mime type case-insensitive
Check method and content type in JSONRPC serverAddresses #3991
enforce content type on XML-RPC. addresses #3991This ensures only text/xml or application/xml content types are acceptedwhen communicating with the XML-RPC API
fix line length issue
Add JSON based alternative to XMLRPCXMLRPC is a rather outdated and old-fashioned protocol not much in useanymore. Developers prefer simpler, JSON based APIs.This adds a new "JSONRPC" API. Basic
Add JSON based alternative to XMLRPCXMLRPC is a rather outdated and old-fashioned protocol not much in useanymore. Developers prefer simpler, JSON based APIs.This adds a new "JSONRPC" API. Basically it exposes exactly the samemethod calls as the XMLRPC API but using JSON instead of XML. It's not aclassical REST API, but should be just as easy to use for developers.Here is an example call using CURL: curl http://localhost/dokuwiki/lib/exe/jsonrpc.phs \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $token" \ -d '["wiki"]'Please note that the above uses the token auth implemented in #2432.Authentication via basic auth or cookies would work as well.
show more ...
Update core code to make use of sexplode()This makes use of our own explode mechanism everywhere were we expect afixed number of results.
increased API version
throw exceptions in API on user creation errorsAs discussed in #3609
CORS on XMLRMPC APIThis allows setting a CORS header to make the xmlrpc API accessible fromJavaScript clients directly in the browser.
abort XMLRPC later in serve()
Fix #3619 and correctly handle exceptions in XMLRPCThis ensures that any exception happening during XMLRPC processing issignalled correctly to the client as XML encoded error message.
revert to simple boolean result when creating user, phpcs fix
Reverted change
fix annotation
Create one user per request
Implements #3606: add xmlrpc createUsers function
Method names with leading double underscore are reserved by PHP.
move IXR XML RPC to composer dependency #1970This is a monky patched version of kissyfrot/php-ixr until my PR hasbeen accepted upstream.Plugins using the XML RPC client may need adjustments.
123456