From 05803591c5e9b45ff7c0e4742e99bd96e9294735 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Fri, 16 May 2014 15:43:14 +0200 Subject: [PATCH] docs: Improve JSON-RPC POST example --- docs/api/http.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/api/http.rst b/docs/api/http.rst index 6a536ff5..0c8f0253 100644 --- a/docs/api/http.rst +++ b/docs/api/http.rst @@ -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`.