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" : "10685",
"_id" : "products/10685",
"_rev" : "_VReqwee--A",
"i" : 1
},
{
"_key" : "10682",
"_id" : "products/10682",
"_rev" : "_VReqwee--_",
"a" : {
"j" : 1
},
"i" : 1
},
{
"_key" : "10678",
"_id" : "products/10678",
"_rev" : "_VReqwee---",
"a" : {
"k" : 1,
"j" : 1
},
"i" : 1
},
{
"_key" : "10688",
"_id" : "products/10688",
"_rev" : "_VReqwei---",
"a" : {
"k" : 2,
"j" : 2
},
"i" : 1
}
],
"hasMore" : false,
"count" : 4,
"error" : false,
"code" : 201
}