From 09af540ca3f2ff66cb41e02eeb34e9222a726dbc Mon Sep 17 00:00:00 2001
From: dev
Date: Fri, 8 Jul 2011 09:40:32 +0000
Subject: [PATCH] Reflect API changes.
---
www.i2p2/pages/i2pcontrol.html | 124 +++++++++++++--------------------
1 file changed, 48 insertions(+), 76 deletions(-)
diff --git a/www.i2p2/pages/i2pcontrol.html b/www.i2p2/pages/i2pcontrol.html
index 6bf046b0..46bc8387 100644
--- a/www.i2p2/pages/i2pcontrol.html
+++ b/www.i2p2/pages/i2pcontrol.html
@@ -15,115 +15,87 @@ Parameters are only provided in a named way (maps).
JSON-RPC 2 format
Request:
-{"id":"id", "method":"method-name","params":{"param-key-1":"param-value-1", "param-key-2":"param-value-2", "token":"**actual token**"}, "jsonrpc":"2.0"}
+{"id":"id", "method":"Method-name","params":{"Param-key-1":"param-value-1", "Param-key-2":"param-value-2", "Token":"**actual token**"}, "jsonrpc":"2.0"}
Response:
-{"id":"id","result":{"result-key-1":"result-value-1","result-key-2":"result-value-2"},"jsonrpc":"2.0"}
+{"id":"id","result":{"Result-key-1":"result-value-1","Result-key-2":"result-value-2"},"jsonrpc":"2.0"}
method-name – Description
Request
- - param-key-1 – Description
- - param-key-2 – Description
- - token – Token used for authenticating every request (excluding the 'authenticate' request)
+ - Param-key-1 – Description
+ - Param-key-2 – Description
+ - Token – Token used for authenticating every request (excluding the 'Authenticate' RPC method)
Response
- - result-key-1 – Description
- - result-key-2 – Description
+ - Result-key-1 – Description
+ - Result-key-2 – Description
Implemented methods
-authenticate – Creates and returns an authentication token used for further communication.
+Authenticate – Creates and returns an authentication token used for further communication.
Request
- - password – [String] The password used for authenticating against the remote server.
+ - Password – [String] The password used for authenticating against the remote server.
Response
- - token – [String] The token used for further communication.
+ - Token – [String] The token used for further communication.
-echo – Echoes the value of the echo key, used for debugging and testing.
+Echo – Echoes the value of the echo key, used for debugging and testing.
Request
- - echo – [String] Value will be returned in response.
- - token – [String]Token used for authenticating the client. Is provided by the server via the 'authenticate' request.
+ - Echo – [String] Value will be returned in response.
+ - Token – [String]Token used for authenticating the client. Is provided by the server via the 'Authenticate' RPC method.
Response
- - result – [String] Value of the key 'echo' in the request.
+ - Result – [String] Value of the key 'echo' in the request.
-