1
0
Fork 0
arangodb/Documentation/Examples/RestDocumentHandlerPostCrea...

15 lines
378 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/document?collection=products
{ "Hello": "World" }
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
etag: "1586771672"
location: /_db/_system/_api/document/products/1586771672
{
"error" : false,
"_id" : "products/1586771672",
"_rev" : "1586771672",
"_key" : "1586771672"
}