1
0
Fork 0
arangodb/Documentation/Examples/RestSimpleFirstExample.gene...

21 lines
435 B
Plaintext

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