18.1. Service root

18.1.1. Get service root

18.1.1. Get service root

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

Figure 18.1. Final Graph


Example request

  • GET http://localhost:7474/db/data/
  • Accept: application/json

Example response

  • 200: OK
  • Content-Type: application/json
{
  "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"
}