[[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"]
----
  N98 [
    label = "{Node\[98\]|}"
  ]
  N98 -> N99 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N98 -> N101 [
    color = "#4e9a06"
    fontcolor = "#4e9a06"
    label = "HATES\n"
  ]
  N99 [
    label = "{Node\[99\]|}"
  ]
  N100 [
    label = "{Node\[100\]|}"
  ]
  N100 -> N98 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N101 [
    label = "{Node\[101\]|}"
  ]
  N102 [
    label = "{Node\[102\]|}"
  ]
----

_Example request_

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

_Example response_

* *+200:+* +OK+
* *+Content-Type:+* +application/json+
[source,javascript]
----
[ {
  "start" : "http://localhost:7474/db/data/node/98",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/47",
  "property" : "http://localhost:7474/db/data/relationship/47/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/47/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/99"
}, {
  "start" : "http://localhost:7474/db/data/node/100",
  "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/98"
}, {
  "start" : "http://localhost:7474/db/data/node/98",
  "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" : "HATES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/101"
} ]
----


