I use HTTPClient.. I need to add the following one:

{
  "to" : "http://localhost:7474/db/data/node/253";,
  "max_depth" : 3,
  "relationships" : {
    "type" : "to",
    "direction" : "out"
  },
  "algorithm" : "shortestPath"
}

I can use
List<NameValuePair> urlParameters = new ArrayList<NameValuePair>();
urlParameters.add(new 
BasicNameValuePair("to","http://localhost:7474/db/data/node/"; + endNodeId));

how to add "relationships"

And I need to change JSON -> String array "nodes" in the following: how to get 
it?

{
                  "weight" : 1.5,
                  "start" : "http://localhost:7474/db/data/node/264";,
                  "nodes" : [ "http://localhost:7474/db/data/node/264";, 
"http://localhost:7474/db/data/node/263";, 
"http://localhost:7474/db/data/node/260";, 
"http://localhost:7474/db/data/node/261"; ],
                  "length" : 3,
                  "relationships" : [ 
"http://localhost:7474/db/data/relationship/163";, 
"http://localhost:7474/db/data/relationship/165";, 
"http://localhost:7474/db/data/relationship/166"; ],
                  "end" : "http://localhost:7474/db/data/node/261";
 }

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to