1
0
Fork 0
arangodb/Documentation/Examples/HttpGharialCreate.generated

43 lines
741 B
Plaintext

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 201 Created
content-type: application/json
etag: 529658763
{
"error" : false,
"code" : 201,
"graph" : {
"name" : "myGraph",
"edgeDefinitions" : [
{
"collection" : "edges",
"from" : [
"startVertices"
],
"to" : [
"endVertices"
]
}
],
"orphanCollections" : [ ],
"_id" : "_graphs/myGraph",
"_rev" : "529658763"
}
}