1
0
Fork 0
arangodb/Documentation/Examples/RestSimpleByExample.generated

51 lines
999 B
Plaintext

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
{
"result" : [
{
"_id" : "products/1502072051",
"_key" : "1502072051",
"_rev" : "1502072051",
"i" : 1
},
{
"_id" : "products/1501809907",
"_key" : "1501809907",
"_rev" : "1501809907",
"i" : 1,
"a" : {
"j" : 1
}
},
{
"_id" : "products/1501482227",
"_key" : "1501482227",
"_rev" : "1501482227",
"i" : 1,
"a" : {
"k" : 1,
"j" : 1
}
},
{
"_id" : "products/1502268659",
"_key" : "1502268659",
"_rev" : "1502268659",
"i" : 1,
"a" : {
"k" : 2,
"j" : 2
}
}
],
"hasMore" : false,
"count" : 4,
"error" : false,
"code" : 201
}