Browse Source

[SPEC] Removed empty paths from close and delete index apis

Although the empty paths are still registered in the java RestActions, that is only to return a meaningful error in case the index is not provided.
Index/indices are now mandatory.
Luca Cavanna 11 năm trước cách đây
mục cha
commit
619c46a2a3

+ 1 - 1
rest-api-spec/api/indices.close.json

@@ -4,7 +4,7 @@
     "methods": ["POST"],
     "methods": ["POST"],
     "url": {
     "url": {
       "path": "/{index}/_close",
       "path": "/{index}/_close",
-      "paths": ["/_close", "/{index}/_close"],
+      "paths": ["/{index}/_close"],
       "parts": {
       "parts": {
         "index": {
         "index": {
           "type" : "string",
           "type" : "string",

+ 2 - 2
rest-api-spec/api/indices.delete.json

@@ -3,8 +3,8 @@
     "documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-delete-index.html",
     "documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-delete-index.html",
     "methods": ["DELETE"],
     "methods": ["DELETE"],
     "url": {
     "url": {
-      "path": "/",
-      "paths": ["/", "/{index}"],
+      "path": "/{index}",
+      "paths": ["/{index}"],
       "parts": {
       "parts": {
         "index": {
         "index": {
           "type" : "list",
           "type" : "list",