Open spierluigi opened 12 years ago
Sorry, but your request is wrong. Plugin accepts only(!) POST requests. But you are right - I have to add some explanational error message for this case.
So, please, could you add to the read-me doc some example of syntax ? Thanks
You can find examples in README file. For example, very basic call looks like this:
URL: http://your_redmine_server/json_rpc_call.json?key=you_api_key
POST data: {"class": "Project", "method" : "find", "params" : ["project_id"]}
just replace server, key and project_id params with your own.
For sending POST requests I suggest using curl.
Good, but unfortunately I am quit enew to this matter.
From the Ubuntu prompt I entered this command line:
curl -F "class=project;method=find;params=" http://XX.XX.XX.XX/redmine/json_rpc_call.json?key=5b9cc482aec02b53991b2e9a6a43caf044cfb9e9
I get this error message: "{"error":"uninitialized constant JsonRpcCallController::JSON"}"
Then I entered the command as
curl -F "key=5b9cc482aec02b53991b2e9a6a43caf044cfb9e9;class=project;method=find;params=" http://XX.XX.XX.XX/redmine/json_rpc_call.json
No error, just the prompt. If there is an answer, where is ti ?
redmine 1.2.1
after having installed the plugin and enabled the REST interface, calling it with the very basic call (.../json_rpc_call.json?key=xxxx) it the system gives this error:
It looks like some template is missing somewhere inside the ther installed plugins