HTTP web service

The HTTP service is stateless. All data to be laid out must be supplied in the HTTP POST request body. A laid-out version of that data is returned in the POST response body.
The data passed between the browser and server is serialized in JavaScript Object Notation (JSON), specified with MIME type “application/json”. A simple graph is defined by an array of nodes, and an array of links. For example:
{
"nodeLayout": {"algorithm":"forcedirected"},
"linkLayout": {"algorithm":"shortlink"},
"nodes":[
   {"id":"object1", "b":[120, 400, 20, 20]},
   {"id":"object2", "b":[170, 400, 20, 20]}
],

"links":[
   {"id":"myLink", "f":"object1", "t":"object2", "ip":[[20,20],[40,20],[40,40]]}
]
} 
The parameters describing the nodes and the links use short names to save network bandwidth and increase performance. The short names are not used for the parameters of the graph layout that are not posted back to the client side. The server-side layout supports both global and local properties.