Split settings to get_ and set_ methods

This commit is contained in:
Honza Kral 2013-06-07 19:44:28 +02:00
parent ec9be6a29b
commit 63d6f9907d
2 changed files with 24 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{
"indices.settings": {
"indices.get_settings": {
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-get-settings/",
"methods": ["GET", "PUT"],
"methods": ["GET"],
"url": {
"path": "/_settings",
"paths": ["/_settings", "/{index}/_settings"],
@ -14,8 +14,6 @@
"params": {
}
},
"body": {
"description" : "The index settings to be updated (when using the PUT method)"
}
"body": null
}
}

View File

@ -0,0 +1,21 @@
{
"indices.put_settings": {
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings/",
"methods": ["PUT"],
"url": {
"path": "/_settings",
"paths": ["/_settings", "/{index}/_settings"],
"parts": {
"index": {
"type" : "list",
"description" : "A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices"
}
},
"params": {
}
},
"body": {
"description" : "The index settings to be updated"
}
}
}