Rest: getData - GraphWalker/graphwalker-project GitHub Wiki

GetData

The Rest call getData is used to ask GraphWalker for the current data values of the current model.

GET Request

http://service-host:8887/graphwalker/getData

Response

If the request was successful "result" will be "ok". The "data" part will hold the data as key value elements.

{
  "result":"ok",
  "data":
  {
    "num_of_books":"0",
    "MAX_BOOKS":"5"
  }
}

Example

From a Linux terminal, using curl:

curl http://localhost:8887/graphwalker/getData
{"result":"ok","data":{"num_of_books":"0","MAX_BOOKS":"5"}}