doc: update a payload example about rpc_client
Add 'id' description in jsonrpc_proxy.html Fix issue #512. Change-Id: Ifa4ee35ea21f70106e79910bccd63d8ed316248c Signed-off-by: WangHaiLiang <hailiangx.e.wang@intel.com> Reviewed-on: https://review.gerrithub.io/434294 Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
be0eb272d8
commit
2f5feaf5b1
@ -33,7 +33,7 @@ import json
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
payload = {'method': 'get_bdevs', 'params': {'name': 'Malloc0'}}
|
payload = {'id':1, 'method': 'get_bdevs', 'params': {'name': 'Malloc0'}}
|
||||||
url = 'http://192.168.0.2:8000/'
|
url = 'http://192.168.0.2:8000/'
|
||||||
req = requests.post(url,
|
req = requests.post(url,
|
||||||
data=json.dumps(payload),
|
data=json.dumps(payload),
|
||||||
|
Loading…
Reference in New Issue
Block a user