shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <<EOF
{
"collection" : "products",
"example" : {
"i" : 1
}
}
EOF
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"result" : [
{
"_key" : "10670",
"_id" : "products/10670",
"_rev" : "_V_qEKC2--_",
"i" : 1
},
{
"_key" : "10663",
"_id" : "products/10663",
"_rev" : "_V_qEKCy---",
"a" : {
"k" : 1,
"j" : 1
},
"i" : 1
},
{
"_key" : "10673",
"_id" : "products/10673",
"_rev" : "_V_qEKC6---",
"a" : {
"k" : 2,
"j" : 2
},
"i" : 1
},
{
"_key" : "10667",
"_id" : "products/10667",
"_rev" : "_V_qEKC2---",
"a" : {
"j" : 1
},
"i" : 1
}
],
"hasMore" : false,
"count" : 4,
"error" : false,
"code" : 201
}