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