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

33 lines
583 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/graph/ <<EOF
{
"_key" : "graph",
"vertices" : "vertices",
"edges" : "edges"
}
EOF
HTTP/1.1 202 Accepted
content-type: application/json; charset=utf-8
etag: 807400331
{
"graph" : {
"_id" : "_graphs/graph",
"_key" : "graph",
"_rev" : "807400331",
"edgeDefinitions" : [
{
"collection" : "edges",
"from" : [
"vertices"
],
"to" : [
"vertices"
]
}
]
},
"error" : false,
"code" : 202
}