[[rest-api-shouldrespondwith200andlistofrelationshiprepresentationswhengettingallrelationshipsforanodestreaming]]
=== ShouldRespondWith200AndListOfRelationshipRepresentationsWhenGettingAllRelationshipsForANodeStreaming ===

.Final Graph
["dot", "Final-Graph-shouldRespondWith200AndListOfRelationshipRepresentationsWhenGettingAllRelationshipsForANodeStreaming.svg", "neoviz"]
----
  N83 [
    label = "{Node\[83\]|}"
  ]
  N83 -> N84 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N83 -> N86 [
    color = "#4e9a06"
    fontcolor = "#4e9a06"
    label = "HATES\n"
  ]
  N84 [
    label = "{Node\[84\]|}"
  ]
  N85 [
    label = "{Node\[85\]|}"
  ]
  N85 -> N83 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N86 [
    label = "{Node\[86\]|}"
  ]
  N87 [
    label = "{Node\[87\]|}"
  ]
----

_Example request_

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

_Example response_

* *+200:+* +OK+
* *+Content-Type:+* +application/json; stream=true+
[source,javascript]
----
[ {
  "extensions" : {
  },
  "start" : "http://localhost:7474/db/data/node/83",
  "property" : "http://localhost:7474/db/data/relationship/38/properties/{key}",
  "self" : "http://localhost:7474/db/data/relationship/38",
  "properties" : "http://localhost:7474/db/data/relationship/38/properties",
  "type" : "LIKES",
  "end" : "http://localhost:7474/db/data/node/84",
  "data" : {
  }
}, {
  "extensions" : {
  },
  "start" : "http://localhost:7474/db/data/node/85",
  "property" : "http://localhost:7474/db/data/relationship/39/properties/{key}",
  "self" : "http://localhost:7474/db/data/relationship/39",
  "properties" : "http://localhost:7474/db/data/relationship/39/properties",
  "type" : "LIKES",
  "end" : "http://localhost:7474/db/data/node/83",
  "data" : {
  }
}, {
  "extensions" : {
  },
  "start" : "http://localhost:7474/db/data/node/83",
  "property" : "http://localhost:7474/db/data/relationship/40/properties/{key}",
  "self" : "http://localhost:7474/db/data/relationship/40",
  "properties" : "http://localhost:7474/db/data/relationship/40/properties",
  "type" : "HATES",
  "end" : "http://localhost:7474/db/data/node/86",
  "data" : {
  }
} ]
----


