var data = JSON.stringify(
{"ID":"User Provided ID",
"Action":"getShipOrbit",
"parameters":{
}
});
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("Post", "http://localhost:8080/api");
xhr.setRequestHeader("Content-Type","application/json");
xhr.send(data);