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

28 lines
496 B
Plaintext

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