I'm having issues with the JSON-RPC plugin. When making an ajax request I get the following data returned.
JSON-RPC server accepts POST requests only.
My setup is as follows:
- OS: Latest Mac OS
- Web Server: XAMPP with the client script also running localhost so anything cross domain shouldn't apply
- Dokuwiki: Latest version of Dokuwiki just downloaded today
- Javascript: I've tried the ajax request using both zepto and jquery with the same result
- JSON RPC plugin downloaded today with "Allow Everyone" enabled for permissions
Ajax call code:
var js_request = {
jsonrpc: '2.0',
id: '1',
method : {
methodName : 'dokuwiki.getVersion'
},
params : [
]
};
var json_request = JSON.stringify(js_request);
$.ajax({
url: "http://localhost/dokuwiki/lib/plugins/jsonrpc/jsonrpc.php",
data: "text",
type:"post",
success: function(data){
console.log(data);
}
});
Hope I'm not wasting anyone's time with something obvious. I have searched the forum and web for solutions and read over some of the JSON RPC documentation. In addition I felt it would be rude to email the author of the plugin directly..??