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