浏览代码

[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 年之前
父节点
当前提交
619c46a2a3
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      rest-api-spec/api/indices.close.json
  2. 2 2
      rest-api-spec/api/indices.delete.json

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

@@ -4,7 +4,7 @@
     "methods": ["POST"],
     "url": {
       "path": "/{index}/_close",
-      "paths": ["/_close", "/{index}/_close"],
+      "paths": ["/{index}/_close"],
       "parts": {
         "index": {
           "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",
     "methods": ["DELETE"],
     "url": {
-      "path": "/",
-      "paths": ["/", "/{index}"],
+      "path": "/{index}",
+      "paths": ["/{index}"],
       "parts": {
         "index": {
           "type" : "list",