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

27 lines
487 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products
{
"type" : "geo",
"fields" : [
"b"
]
}
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"id" : "products/1239017819",
"type" : "geo1",
"unique" : false,
"sparse" : true,
"geoJson" : false,
"constraint" : false,
"ignoreNull" : true,
"fields" : [
"b"
],
"isNewlyCreated" : true,
"error" : false,
"code" : 201
}