docs: Improve JSON-RPC POST example
This commit is contained in:
parent
33a02754c1
commit
05803591c5
@ -38,10 +38,8 @@ to listen to events, you should probably use the WebSocket API instead.
|
||||
|
||||
Example usage from the command line::
|
||||
|
||||
$ curl -d '{"jsonrpc": "2.0", "id": 1, "method":
|
||||
"core.playback.get_state"}' http://localhost:6680/mopidy/rpc
|
||||
$ curl -d '{"jsonrpc": "2.0", "id": 1, "method": "core.playback.get_state"}' http://localhost:6680/mopidy/rpc
|
||||
{"jsonrpc": "2.0", "id": 1, "result": "stopped"}
|
||||
$
|
||||
|
||||
For details on the request and response format, see :ref:`json-rpc`.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user