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

32 lines
574 B
Plaintext

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