History log of /dokuwiki/lib/exe/jsonrpc.php (Results 1 – 4 of 4)
Revision Date Author Comments
# f0319d45 29-Nov-2023 Andreas Gohr <andi@splitbrain.org>

Merge pull request #4113 from dokuwiki/jsonrpc-conformity

JSONRPC Standards


# 6f8e03f5 28-Nov-2023 Andreas Gohr <andi@splitbrain.org>

implement support for JSON-RPC 1.0, 1.1 and 2.0

This implements the slightly more standardized JSON-RPC standard as an
alternative to my home-grown version. The same server handled all formats
inclu

implement support for JSON-RPC 1.0, 1.1 and 2.0

This implements the slightly more standardized JSON-RPC standard as an
alternative to my home-grown version. The same server handled all formats
including my own simpler variant.

show more ...


# cf927d07 28-Nov-2023 splitbrain <splitbrain@users.noreply.github.com>

�� Rector and PHPCS fixes


# f657e5d0 27-Apr-2023 Andreas Gohr <andi@splitbrain.org>

Add JSON based alternative to XMLRPC

XMLRPC is a rather outdated and old-fashioned protocol not much in use
anymore. Developers prefer simpler, JSON based APIs.

This adds a new "JSONRPC" API. Basic

Add JSON based alternative to XMLRPC

XMLRPC is a rather outdated and old-fashioned protocol not much in use
anymore. Developers prefer simpler, JSON based APIs.

This adds a new "JSONRPC" API. Basically it exposes exactly the same
method calls as the XMLRPC API but using JSON instead of XML. It's not a
classical 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 ...