fixed comment for jsonrpc-2.0 example.
This commit is contained in:
1 parent
10193dd014
commit
9311e7c94f
1 file changed
+1
-1
+1
-1
@@ -4086,7 +4086,7 @@ class Service(object):
|
|||||||
|
|
||||||
Then call it with:
|
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
|
self.jsonrpc2_procedures[f.__name__] = f
|
||||||
|
|||||||
Reference in new issue
Block a user