fixed comment for jsonrpc-2.0 example.

This commit is contained in:
Michele Comitini
2013-01-19 23:54:02 +01:00
parent 10193dd014
commit 9311e7c94f
+1 -1
View File
@@ -4086,7 +4086,7 @@ class Service(object):
Then call it with:
wget --post-data '{"jsonrpc": "2.0", "id": 1, "method": "mymethod", "params": {"param1": "val1", "param2": "val2"}}' http://..../app/default/call/jsonrpc2/myfunction
wget --post-data '{"jsonrpc": "2.0", "id": 1, "method": "myfunction", "params": {"a": 1, "b": 2}}' http://..../app/default/call/jsonrpc2/myfunction
"""
self.jsonrpc2_procedures[f.__name__] = f