shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF
{
"name" : "testCollectionBasics"
}
EOF
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"code" : 200,
"error" : false,
"status" : 3,
"statusString" : "loaded",
"name" : "testCollectionBasics",
"keyOptions" : {
"type" : "traditional",
"allowUserKeys" : true,
"lastValue" : 0
},
"type" : 2,
"indexBuckets" : 8,
"globallyUniqueId" : "h3CED0815C6B6/9845",
"doCompact" : true,
"waitForSync" : false,
"id" : "9845",
"isSystem" : false,
"journalSize" : 33554432,
"isVolatile" : false
}
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF
{
"name" : "testCollectionEdges",
"type" : 3
}
EOF
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"code" : 200,
"error" : false,
"status" : 3,
"statusString" : "loaded",
"name" : "testCollectionEdges",
"keyOptions" : {
"type" : "traditional",
"allowUserKeys" : true,
"lastValue" : 0
},
"type" : 3,
"indexBuckets" : 8,
"globallyUniqueId" : "h3CED0815C6B6/9848",
"doCompact" : true,
"waitForSync" : false,
"id" : "9848",
"isSystem" : false,
"journalSize" : 33554432,
"isVolatile" : false
}