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

<p/>
Note that the "+&+" needs to be escaped for example when using
http://curl.haxx.se/[cURL] from the terminal.


.Final Graph
["dot", "Final-Graph-Get-typed-relationships.svg", "neoviz"]
----
  N154 [
    label = "{Node\[154\]|}"
  ]
  N154 -> N155 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N154 -> N157 [
    color = "#4e9a06"
    fontcolor = "#4e9a06"
    label = "HATES\n"
  ]
  N155 [
    label = "{Node\[155\]|}"
  ]
  N156 [
    label = "{Node\[156\]|}"
  ]
  N156 -> N154 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N157 [
    label = "{Node\[157\]|}"
  ]
  N158 [
    label = "{Node\[158\]|}"
  ]
----

_Example request_

* *+GET+*  +http://localhost:7474/db/data/node/154/relationships/all/LIKES&HATES+
* *+Accept:+* +application/json+

_Example response_

* *+200:+* +OK+
* *+Content-Type:+* +application/json+
[source,javascript]
----
[ {
  "start" : "http://localhost:7474/db/data/node/154",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/57",
  "property" : "http://localhost:7474/db/data/relationship/57/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/57/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/155"
}, {
  "start" : "http://localhost:7474/db/data/node/156",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/58",
  "property" : "http://localhost:7474/db/data/relationship/58/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/58/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/154"
}, {
  "start" : "http://localhost:7474/db/data/node/154",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/59",
  "property" : "http://localhost:7474/db/data/relationship/59/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/59/properties",
  "type" : "HATES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/157"
} ]
----


