shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/all-keys <<EOF
{
"collection" : "products"
}
EOF
HTTP/1.1 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
"/_db/_system/_api/document/products/69899",
"/_db/_system/_api/document/products/69901",
"/_db/_system/_api/document/products/69903"
],
"hasMore" : false,
"cached" : false,
"extra" : {
"stats" : {
"writesExecuted" : 0,
"writesIgnored" : 0,
"scannedFull" : 3,
"scannedIndex" : 0,
"filtered" : 0,
"httpRequests" : 0,
"executionTime" : 0.0001697540283203125,
"peakMemoryUsage" : 34377
},
"warnings" : [ ]
},
"error" : false,
"code" : 201
}