The REST Interface allows access to the Nodes of CoDaBix® via HTTP request formatted as an JSON object.
e.g. the following HTTP request is reading the System Nodes Tree of CoDaBix®:
var oIE = WScript.CreateObject("InternetExplorer.Application"); oIE.navigate("about:blank"); var token = oIE.Document.Script.prompt("Enter Token", "1:QqjkQAtk4hyWRnbTt1+dZdGFCg3QE+nS"); var request; try {request = new XMLHttpRequest();} catch (error) { try {request = new ActiveXObject("Msxml2.XMLHTTP");} catch (error) { request = new ActiveXObject("Microsoft.XMLHTTP"); } } request.open("POST", "http://localhost:8181/api/json", false); request.send('{"tk": "' + token + '", "browse": { "na": "" } }'); WScript.Echo(request.responseText);
You can find the documentation of the REST API of the plugin here:
The REST Interface Plugin provides a status code for functions for diagnostic purposes - see Request & Response of the REST API Documentation.
Date | 2017-07-12 |
---|---|
Version | 1.2 |
Name | REST Interface Plugin |
---|---|
Version | Corresponds to the CoDaBix® Version |
The REST Interface Plugin is an inherent part of CoDaBix® and therefore doesn't consist of a separate assembly.