DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:jsonrpc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
devel:jsonrpc [2024-02-06 14:10] andidevel:jsonrpc [2024-03-09 09:34] – [JSON-RPC Standard] fix example schplurtz
Line 39: Line 39:
 The main difference to the simplified form is that all info, including the method to call is passed as body: The main difference to the simplified form is that all info, including the method to call is passed as body:
  
-  curl http://localhost/dokuwiki/lib/exe/jsonrpc.php/wiki.getPageInfo \+  curl http://localhost/dokuwiki/lib/exe/jsonrpc.php \
      -H 'Content-Type: application/json' \      -H 'Content-Type: application/json' \
      -H "Authorization: Bearer $token" \      -H "Authorization: Bearer $token" \
-     -d '{"jsonrpc": "2.0", "id": "something", "method": "wiki.corePageInfo", "params": {"page": "wiki:syntax"}}'+     -d '{"jsonrpc": "2.0", "id": "something", "method": "core.getPageInfo", "params": {"page": "wiki:syntax"}}'
  
 Please note, when using version 2.0, batching multiple calls is not supported. Refer to the [[https://www.jsonrpc.org/specification|Specification on how to use this format]]. Please note, when using version 2.0, batching multiple calls is not supported. Refer to the [[https://www.jsonrpc.org/specification|Specification on how to use this format]].
devel/jsonrpc.txt · Last modified: 2024-05-19 08:44 by 2a09:bac3:2f06:1e1::30:9a

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki