[[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"]
----
  N86 [
    label = "{Node\[86\]|}"
  ]
  N86 -> N87 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N86 -> N89 [
    color = "#4e9a06"
    fontcolor = "#4e9a06"
    label = "HATES\n"
  ]
  N87 [
    label = "{Node\[87\]|}"
  ]
  N88 [
    label = "{Node\[88\]|}"
  ]
  N88 -> N86 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "LIKES\n"
  ]
  N89 [
    label = "{Node\[89\]|}"
  ]
  N90 [
    label = "{Node\[90\]|}"
  ]
----

_Example request_

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

_Example response_

* *+200:+* +OK+
* *+Content-Type:+* +application/json+
[source,javascript]
----
[ {
  "start" : "http://localhost:7474/db/data/node/86",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/40",
  "property" : "http://localhost:7474/db/data/relationship/40/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/40/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/87"
}, {
  "start" : "http://localhost:7474/db/data/node/88",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/41",
  "property" : "http://localhost:7474/db/data/relationship/41/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/41/properties",
  "type" : "LIKES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/86"
}, {
  "start" : "http://localhost:7474/db/data/node/86",
  "data" : {
  },
  "self" : "http://localhost:7474/db/data/relationship/42",
  "property" : "http://localhost:7474/db/data/relationship/42/properties/{key}",
  "properties" : "http://localhost:7474/db/data/relationship/42/properties",
  "type" : "HATES",
  "extensions" : {
  },
  "end" : "http://localhost:7474/db/data/node/89"
} ]
----


