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

51 lines
987 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/842134411",
"_key" : "842134411",
"_rev" : "842134411",
"i" : 1,
"a" : {
"j" : 1
}
},
{
"_id" : "products/842396555",
"_key" : "842396555",
"_rev" : "842396555",
"i" : 1
},
{
"_id" : "products/842593163",
"_key" : "842593163",
"_rev" : "842593163",
"i" : 1,
"a" : {
"k" : 2,
"j" : 2
}
},
{
"_id" : "products/841806731",
"_key" : "841806731",
"_rev" : "841806731",
"i" : 1,
"a" : {
"k" : 1,
"j" : 1
}
}
],
"hasMore" : false,
"count" : 4,
"error" : false,
"code" : 201
}