From 4a9e480e2c462ac37e0cc9f048d35042500a9d0d Mon Sep 17 00:00:00 2001 From: Ryan Loomba Date: Sun, 26 Aug 2018 20:25:37 -0700 Subject: [PATCH 1/2] update RPC tutorial example commands --- docs/tutorials/rpc.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/tutorials/rpc.rst b/docs/tutorials/rpc.rst index 1a0d28b7da55..09f5fe592bdb 100644 --- a/docs/tutorials/rpc.rst +++ b/docs/tutorials/rpc.rst @@ -27,14 +27,14 @@ procedures provided by the associated economic protocol version: :: - ./tezos-client rpc list /blocks/genesis/ + ./tezos-client rpc list chains/main/blocks/genesis You might also want the JSON schema describing the expected input and output of a RPC. For instance: :: - ./tezos-client rpc schema /blocks/genesis/hash + ./tezos-client rpc schema get chains/main/blocks/genesis/hash Note: you can get the same information, but as a raw JSON object, with a simple HTTP request: @@ -42,9 +42,9 @@ simple HTTP request: :: curl -s localhost:8732/chains/main/blocks/head~10 - wget --post-data '{ "recursive": true }' -O - http://localhost:8732/describe - wget --post-data '{ "recursive": true }' -O - http://localhost:8732/describe/blocks/genesis - wget -O - http://localhost:8732/describe/blocks/genesis/hash + wget -O - http://localhost:8732/describe?recurse=true + wget -O - http://localhost:8732/describe/chains/main/blocks/genesis?recurse=true + wget -O - http://localhost:8732/describe/chains/main/blocks/genesis/hash An online :ref:`index ` of RPC calls is also available. -- GitLab From e7b0dedfc272bdda44d35a1f3da47e1c519a51f8 Mon Sep 17 00:00:00 2001 From: Ryan Loomba Date: Mon, 27 Aug 2018 09:24:34 -0700 Subject: [PATCH 2/2] prefix the paths with / to emphasize the directory representation --- docs/tutorials/rpc.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/rpc.rst b/docs/tutorials/rpc.rst index 09f5fe592bdb..0c6fe069b23b 100644 --- a/docs/tutorials/rpc.rst +++ b/docs/tutorials/rpc.rst @@ -27,14 +27,14 @@ procedures provided by the associated economic protocol version: :: - ./tezos-client rpc list chains/main/blocks/genesis + ./tezos-client rpc list /chains/main/blocks/genesis You might also want the JSON schema describing the expected input and output of a RPC. For instance: :: - ./tezos-client rpc schema get chains/main/blocks/genesis/hash + ./tezos-client rpc schema get /chains/main/blocks/genesis/hash Note: you can get the same information, but as a raw JSON object, with a simple HTTP request: -- GitLab