shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial <<EOF
{
"name" : "myGraph",
"edgeDefinitions" : [
{
"collection" : "edges",
"from" : [
"startVertices"
],
"to" : [
"endVertices"
]
}
]
}
EOF
HTTP/1.1 Accepted
content-type: application/json; charset=utf-8
etag: _ZXF5wRe--A
x-content-type-options: nosniff
{
"error" : false,
"code" : 202,
"graph" : {
"_key" : "myGraph",
"numberOfShards" : 1,
"replicationFactor" : 1,
"minReplicationFactor" : 1,
"isSmart" : false,
"edgeDefinitions" : [
{
"collection" : "edges",
"from" : [
"startVertices"
],
"to" : [
"endVertices"
]
}
],
"orphanCollections" : [ ],
"_rev" : "_ZXF5wRe--A",
"_id" : "_graphs/myGraph",
"name" : "myGraph"
}
}