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,
"waitForSync" : false,
"type" : 2,
"status" : 3,
"journalSize" : 33554432,
"keyOptions" : {
"allowUserKeys" : true,
"type" : "traditional",
"lastValue" : 0
},
"globallyUniqueId" : "h8B2B671BCFD0/102801",
"statusString" : "loaded",
"id" : "102801",
"name" : "testCollectionBasics",
"doCompact" : true,
"isSystem" : false,
"indexBuckets" : 8,
"isVolatile" : false
}
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,
"waitForSync" : false,
"type" : 3,
"status" : 3,
"journalSize" : 33554432,
"keyOptions" : {
"allowUserKeys" : true,
"type" : "traditional",
"lastValue" : 0
},
"globallyUniqueId" : "h8B2B671BCFD0/102807",
"statusString" : "loaded",
"id" : "102807",
"name" : "testCollectionEdges",
"doCompact" : true,
"isSystem" : false,
"indexBuckets" : 8,
"isVolatile" : false
}