[[rest-api-get-relationship-by-id]]
=== Get Relationship by ID ===

.Final Graph
["dot", "Final-Graph-get-Relationship-by-ID.svg", "neoviz"]
----
  N46 [
    label = "{Node\[46\]|name = \'you\'\l}"
  ]
  N47 [
    label = "{Node\[47\]|name = \'I\'\l}"
  ]
  N47 -> N46 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "know\n"
  ]
----

_Example request_

* *+GET+*  +http://localhost:7474/db/data/relationship/18+
* *+Accept:+* +application/json+

_Example response_

* *+200:+* +OK+
* *+Content-Type:+* +application/json+
[source,javascript]
----
{
  "extensions" : {
  },
  "start" : "http://localhost:7474/db/data/node/47",
  "property" : "http://localhost:7474/db/data/relationship/18/properties/{key}",
  "self" : "http://localhost:7474/db/data/relationship/18",
  "properties" : "http://localhost:7474/db/data/relationship/18/properties",
  "type" : "know",
  "end" : "http://localhost:7474/db/data/node/46",
  "data" : {
  }
}
----


