[[rest-api-get-all-relationships]]
=== Get all relationships ===

.Final Graph
["dot", "Final-Graph-Get-all-relationships.svg", "neoviz"]
----
  N139 [
    label = "{Node\[139\]|}"
  ]
  N139 -> N140 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N139 -> N142 [
    color = "#4e9a06"
    fontcolor = "#4e9a06"
    label = "HATES\n"
  ]
  N140 [
    label = "{Node\[140\]|}"
  ]
  N141 [
    label = "{Node\[141\]|}"
  ]
  N141 -> N139 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N142 [
    label = "{Node\[142\]|}"
  ]
  N143 [
    label = "{Node\[143\]|}"
  ]
----

_Example request_

* *+GET+*  +http://localhost:7474/db/data/node/139/relationships/all+
* *+Accept:+* +application/json+

_Example response_

* *+200:+* +OK+
* *+Content-Type:+* +application/json+
[source,javascript]
----
[ {
  "start" : "http://localhost:7474/db/data/node/139",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/48",
  "property" : "http://localhost:7474/db/data/relationship/48/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/48/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/140"
}, {
  "start" : "http://localhost:7474/db/data/node/141",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/49",
  "property" : "http://localhost:7474/db/data/relationship/49/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/49/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/139"
}, {
  "start" : "http://localhost:7474/db/data/node/139",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/50",
  "property" : "http://localhost:7474/db/data/relationship/50/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/50/properties",
  "type" : "HATES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/142"
} ]
----


