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

.Final Graph
["dot", "Final-Graph-Get-all-relationships.svg", "neoviz"]
----
  N78 [
    label = "{Node\[78\]|}"
  ]
  N78 -> N79 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N78 -> N81 [
    color = "#4e9a06"
    fontcolor = "#4e9a06"
    label = "HATES\n"
  ]
  N79 [
    label = "{Node\[79\]|}"
  ]
  N80 [
    label = "{Node\[80\]|}"
  ]
  N80 -> N78 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N81 [
    label = "{Node\[81\]|}"
  ]
  N82 [
    label = "{Node\[82\]|}"
  ]
----

_Example request_

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

_Example response_

* *+200:+* +OK+
* *+Content-Type:+* +application/json+
[source,javascript]
----
[ {
  "start" : "http://localhost:7474/db/data/node/78",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/35",
  "property" : "http://localhost:7474/db/data/relationship/35/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/35/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/79"
}, {
  "start" : "http://localhost:7474/db/data/node/80",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/36",
  "property" : "http://localhost:7474/db/data/relationship/36/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/36/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/78"
}, {
  "start" : "http://localhost:7474/db/data/node/78",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/37",
  "property" : "http://localhost:7474/db/data/relationship/37/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/37/properties",
  "type" : "HATES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/81"
} ]
----


