shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF
{
"name" : "testCollectionBasics"
}
EOF
HTTP/1.1 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"error" : false,
"code" : 200,
"type" : 2,
"status" : 3,
"statusString" : "loaded",
"id" : "69096",
"waitForSync" : false,
"objectId" : "69095",
"cacheEnabled" : false,
"isSystem" : false,
"globallyUniqueId" : "h34D5FCD00B2F/69096",
"keyOptions" : {
"allowUserKeys" : true,
"type" : "traditional",
"lastValue" : 0
},
"name" : "testCollectionBasics"
}
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF
{
"name" : "testCollectionEdges",
"type" : 3
}
EOF
HTTP/1.1 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"error" : false,
"code" : 200,
"type" : 3,
"status" : 3,
"statusString" : "loaded",
"id" : "69101",
"waitForSync" : false,
"objectId" : "69100",
"cacheEnabled" : false,
"isSystem" : false,
"globallyUniqueId" : "h34D5FCD00B2F/69101",
"keyOptions" : {
"allowUserKeys" : true,
"type" : "traditional",
"lastValue" : 0
},
"name" : "testCollectionEdges"
}