shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF
{ "Hello": "World", "_key" : "lock" }
EOF
HTTP/1.1 Created
content-type: application/json; charset=utf-8
etag: "_YQtDfjm--_"
location: /_db/_system/_api/document/products/lock
x-content-type-options: nosniff
{
"_id" : "products/lock",
"_key" : "lock",
"_rev" : "_YQtDfjm--_"
}
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?overwrite=true <<EOF
{ "Hello": "Universe", "_key" : "lock" }
EOF
HTTP/1.1 Created
content-type: application/json; charset=utf-8
etag: "_YQtDfkO--B"
location: /_db/_system/_api/document/products/lock
x-content-type-options: nosniff
{
"_id" : "products/lock",
"_key" : "lock",
"_rev" : "_YQtDfkO--B",
"_oldRev" : "_YQtDfjm--_"
}