[[rest-api-return-paths-from-a-traversal]]
=== Return paths from a traversal ===

.Final Graph
["dot", "Final-Graph-return-paths-from-a-traversal.svg", "neoviz"]
----
  N9 [
    label = "{Node\[9\]|name = \'car\'\l}"
  ]
  N10 [
    label = "{Node\[10\]|name = \'you\'\l}"
  ]
  N11 [
    label = "{Node\[11\]|name = \'I\'\l}"
  ]
  N11 -> N10 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "know\n"
  ]
  N11 -> N9 [
    color = "#4e9a06"
    fontcolor = "#4e9a06"
    label = "own\n"
  ]
----

_Example request_

* *+POST+*  +http://localhost:7474/db/data/node/11/traverse/path+
* *+Accept:+* +application/json+
* *+Content-Type:+* +application/json+
[source,javascript]
----
{"order":"breadth_first","uniqueness":"none","return_filter":{"language":"builtin","name":"all"}}
----


_Example response_

* *+200:+* +OK+
* *+Content-Type:+* +application/json+
[source,javascript]
----
[ {
  "start" : "http://localhost:7474/db/data/node/11",
  "nodes" : [ "http://localhost:7474/db/data/node/11" ],
  "length" : 0,
  "relationships" : [ ],
  "end" : "http://localhost:7474/db/data/node/11"
}, {
  "start" : "http://localhost:7474/db/data/node/11",
  "nodes" : [ "http://localhost:7474/db/data/node/11", "http://localhost:7474/db/data/node/10" ],
  "length" : 1,
  "relationships" : [ "http://localhost:7474/db/data/relationship/4" ],
  "end" : "http://localhost:7474/db/data/node/10"
}, {
  "start" : "http://localhost:7474/db/data/node/11",
  "nodes" : [ "http://localhost:7474/db/data/node/11", "http://localhost:7474/db/data/node/9" ],
  "length" : 1,
  "relationships" : [ "http://localhost:7474/db/data/relationship/5" ],
  "end" : "http://localhost:7474/db/data/node/9"
} ]
----


