[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.
This commit is contained in:
Luca Cavanna 2014-01-18 10:40:46 +01:00
parent fe60cca038
commit 619c46a2a3
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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",