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

42 lines
733 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
{
"name" : "myGraph",
"edgeDefinitions" : [
{
"collection" : "edges",
"from" : [
"startVertices"
],
"to" : [
"endVertices"
]
}
]
}
HTTP/1.1 201 Created
content-type: application/json
etag: 1479828950
{
"error" : false,
"code" : 201,
"graph" : {
"name" : "myGraph",
"edgeDefinitions" : [
{
"collection" : "edges",
"from" : [
"startVertices"
],
"to" : [
"endVertices"
]
}
],
"orphanCollections" : [ ],
"_id" : "_graphs/myGraph",
"_rev" : "1479828950"
}
}