[[rest-api-get-service-root]]
=== Get service root ===

The service root is your starting point to discover the REST API.
It contains the basic starting points for the databse, and some
version and extension information. The +reference_node+ entry will
only be present if there is a reference node set and exists in the database.


.Final Graph
["dot", "Final-Graph-Get-service-root.svg", "neoviz"]
----
  N30 [
    label = "{Node\[30\]|name = \'you\'\l}"
  ]
  N31 [
    label = "{Node\[31\]|name = \'I\'\l}"
  ]
  N31 -> N30 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "know\n"
  ]
----

_Example request_

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

_Example response_

* *+200:+* +OK+
* *+Content-Type:+* +application/json+
[source,javascript]
----
{
  "extensions" : {
  },
  "node" : "http://localhost:7474/db/data/node",
  "reference_node" : "http://localhost:7474/db/data/node/31",
  "node_index" : "http://localhost:7474/db/data/index/node",
  "relationship_index" : "http://localhost:7474/db/data/index/relationship",
  "extensions_info" : "http://localhost:7474/db/data/ext",
  "relationship_types" : "http://localhost:7474/db/data/relationship/types",
  "batch" : "http://localhost:7474/db/data/batch",
  "cypher" : "http://localhost:7474/db/data/cypher",
  "neo4j_version" : "1.8.M05-1-ge9cdca9"
}
----


