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