shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial <<EOF
{
"name" : "myGraph",
"edgeDefinitions" : [
{
"collection" : "edges",
"from" : [
"startVertices"
],
"to" : [
"endVertices"
]
}
]
}
EOF
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: _UWx8OaG---
{
"error" : false,
"graph" : {
"name" : "myGraph",
"edgeDefinitions" : [
{
"collection" : "edges",
"from" : [
"startVertices"
],
"to" : [
"endVertices"
]
}
],
"orphanCollections" : [ ],
"isSmart" : false,
"numberOfShards" : 0,
"smartGraphAttribute" : "",
"_id" : "_graphs/myGraph",
"_rev" : "_UWx8OaG---"
},
"code" : 202
}