From 58b3985c32f1788e1c2a01d6ec254ffc69574f4c Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Thu, 23 Aug 2012 14:16:09 +0200 Subject: [PATCH] fixed wrong index examples --- .../Examples.ArangoDB/api-index-create-geo-latitude-longitude | 2 +- Doxygen/Examples.ArangoDB/api-index-create-geo-location | 2 +- Doxygen/Examples.ArangoDB/api-index-create-new-hash-index | 2 +- Doxygen/Examples.ArangoDB/api-index-create-new-skiplist | 2 +- .../Examples.ArangoDB/api-index-create-new-unique-constraint | 2 +- Doxygen/Examples.ArangoDB/api-index-create-new-unique-skiplist | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Doxygen/Examples.ArangoDB/api-index-create-geo-latitude-longitude b/Doxygen/Examples.ArangoDB/api-index-create-geo-latitude-longitude index fda16cf8a3..8856a9bac7 100644 --- a/Doxygen/Examples.ArangoDB/api-index-create-geo-latitude-longitude +++ b/Doxygen/Examples.ArangoDB/api-index-create-geo-latitude-longitude @@ -1,4 +1,4 @@ -> curl --data @- -X POST --dump - http://localhost:8529/_api/index/99886352 +> curl --data @- -X POST --dump - http://localhost:8529/_api/index?collection=99886352 { "type" : "geo", "fields" : [ "e", "f" ] } HTTP/1.1 201 Created diff --git a/Doxygen/Examples.ArangoDB/api-index-create-geo-location b/Doxygen/Examples.ArangoDB/api-index-create-geo-location index 5b5506950e..961e554ea7 100644 --- a/Doxygen/Examples.ArangoDB/api-index-create-geo-location +++ b/Doxygen/Examples.ArangoDB/api-index-create-geo-location @@ -1,4 +1,4 @@ -> curl --data @- -X POST --dump - http://localhost:8529/_api/index/95560976 +> curl --data @- -X POST --dump - http://localhost:8529/_api/index?collection=95560976 { "type" : "geo", "fields" : [ "b" ] } HTTP/1.1 201 Created diff --git a/Doxygen/Examples.ArangoDB/api-index-create-new-hash-index b/Doxygen/Examples.ArangoDB/api-index-create-new-hash-index index 3b066d9f9b..d1c8afa036 100644 --- a/Doxygen/Examples.ArangoDB/api-index-create-new-hash-index +++ b/Doxygen/Examples.ArangoDB/api-index-create-new-hash-index @@ -1,4 +1,4 @@ -> curl --data @- -X POST --dump - http://localhost:8529/_api/index/105981200 +> curl --data @- -X POST --dump - http://localhost:8529/_api/index?collection=105981200 { "type" : "hash", "unique" : false, "fields" : [ "a", "b" ] } HTTP/1.1 201 Created diff --git a/Doxygen/Examples.ArangoDB/api-index-create-new-skiplist b/Doxygen/Examples.ArangoDB/api-index-create-new-skiplist index aa2e5e8670..c7a125f118 100644 --- a/Doxygen/Examples.ArangoDB/api-index-create-new-skiplist +++ b/Doxygen/Examples.ArangoDB/api-index-create-new-skiplist @@ -1,4 +1,4 @@ -> curl --data @- -X POST --dump - http://localhost:8529/_api/index/109061392 +> curl --data @- -X POST --dump - http://localhost:8529/_api/index?collection=109061392 { "type" : "skiplist", "unique" : false, "fields" : [ "a", "b" ] } HTTP/1.1 201 Created diff --git a/Doxygen/Examples.ArangoDB/api-index-create-new-unique-constraint b/Doxygen/Examples.ArangoDB/api-index-create-new-unique-constraint index e052214a8f..cb7f3a5061 100644 --- a/Doxygen/Examples.ArangoDB/api-index-create-new-unique-constraint +++ b/Doxygen/Examples.ArangoDB/api-index-create-new-unique-constraint @@ -1,4 +1,4 @@ -> curl --data @- -X POST --dump - http://localhost:8529/_api/index/102901008 +> curl --data @- -X POST --dump - http://localhost:8529/_api/index?collection=102901008 { "type" : "hash", "unique" : true, "fields" : [ "a", "b" ] } HTTP/1.1 201 Created diff --git a/Doxygen/Examples.ArangoDB/api-index-create-new-unique-skiplist b/Doxygen/Examples.ArangoDB/api-index-create-new-unique-skiplist index 341eadc555..772f86c833 100644 --- a/Doxygen/Examples.ArangoDB/api-index-create-new-unique-skiplist +++ b/Doxygen/Examples.ArangoDB/api-index-create-new-unique-skiplist @@ -1,4 +1,4 @@ -> curl --data @- -X POST --dump - http://localhost:8529/_api/index/112141584 +> curl --data @- -X POST --dump - http://localhost:8529/_api/index?collection=112141584 { "type" : "skiplist", "unique" : true, "fields" : [ "a", "b" ] } HTTP/1.1 201 Created