shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/first-example <<EOF
{
"collection" : "products",
"example" : {
"i" : 1
}
}
EOF
HTTP/1.1 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"document" : {
"_key" : "105277",
"_id" : "products/105277",
"_rev" : "_YOn1XZG--D",
"a" : {
"k" : 2,
"j" : 2
},
"i" : 1
},
"error" : false,
"code" : 200
}