shell> curl -X POST --header 'accept: application/json' --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" : "hDDAE96189BE5/9866",
"doCompact" : true,
"waitForSync" : false,
"id" : "9866",
"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 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" : "hDDAE96189BE5/9869",
"doCompact" : true,
"waitForSync" : false,
"id" : "9869",
"isSystem" : false,
"journalSize" : 33554432,
"isVolatile" : false
}