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

.Final Graph
["dot", "Final-Graph-Get-all-relationships.svg", "neoviz"]
----
  N71 [
    label = "{Node\[71\]|}"
  ]
  N71 -> N72 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N71 -> N74 [
    color = "#4e9a06"
    fontcolor = "#4e9a06"
    label = "HATES\n"
  ]
  N72 [
    label = "{Node\[72\]|}"
  ]
  N73 [
    label = "{Node\[73\]|}"
  ]
  N73 -> N71 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N74 [
    label = "{Node\[74\]|}"
  ]
  N75 [
    label = "{Node\[75\]|}"
  ]
----

_Example request_

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

_Example response_

* *+200:+* +OK+
* *+Content-Type:+* +application/json+
[source,javascript]
----
[ {
  "start" : "http://localhost:7474/db/data/node/71",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/31",
  "property" : "http://localhost:7474/db/data/relationship/31/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/31/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/72"
}, {
  "start" : "http://localhost:7474/db/data/node/73",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/32",
  "property" : "http://localhost:7474/db/data/relationship/32/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/32/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/71"
}, {
  "start" : "http://localhost:7474/db/data/node/71",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/33",
  "property" : "http://localhost:7474/db/data/relationship/33/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/33/properties",
  "type" : "HATES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/74"
} ]
----


