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

The whole REST API can be transmitted as JSON streams,
resulting in better performance and lower memory overhead at the server side.
To use it, adjust your accept headers on the request for every call.


.Final Graph
["dot", "Final-Graph-get-service-root-streaming.svg", "neoviz"]
----
  N32 [
    label = "{Node\[32\]|name = \'you\'\l}"
  ]
  N33 [
    label = "{Node\[33\]|name = \'I\'\l}"
  ]
  N33 -> N32 [
    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; stream=true+
[source,javascript]
----
{
  "extensions" : {
  },
  "node" : "http://localhost:7474/db/data/node",
  "reference_node" : "http://localhost:7474/db/data/node/33",
  "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"
}
----


