From 9a4362e774647881d331061d82126c669d495f3c Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Fri, 7 Jun 2013 18:54:21 +0200 Subject: [PATCH] Rename api methods to verb_object for consistency --- .../api/{indices.cache.clear.json => indices.clear_cache.json} | 2 +- .../{indices.alias.delete.json => indices.delete_alias.json} | 2 +- ...{indices.mapping.delete.json => indices.delete_mapping.json} | 2 +- ...ndices.template.delete.json => indices.delete_template.json} | 2 +- .../{indices.warmer.delete.json => indices.delete_warmer.json} | 2 +- .../{indices.exists.indices.json => indices.exist_indices.json} | 2 +- .../api/{indices.exists.types.json => indices.exist_types.json} | 2 +- .../{indices.alias.exists.json => indices.exists_alias.json} | 2 +- .../api/{indices.alias.get.json => indices.get_alias.json} | 2 +- .../api/{indices.mapping.get.json => indices.get_mapping.json} | 2 +- .../{indices.template.get.json => indices.get_template.json} | 2 +- .../api/{indices.warmer.get.json => indices.get_warmer.json} | 2 +- .../api/{indices.alias.put.json => indices.put_alias.json} | 2 +- .../api/{indices.mapping.put.json => indices.put_mapping.json} | 2 +- .../{indices.template.put.json => indices.put_template.json} | 2 +- .../api/{indices.warmer.put.json => indices.put_warmer.json} | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) rename rest-api-spec/api/{indices.cache.clear.json => indices.clear_cache.json} (98%) rename rest-api-spec/api/{indices.alias.delete.json => indices.delete_alias.json} (96%) rename rest-api-spec/api/{indices.mapping.delete.json => indices.delete_mapping.json} (95%) rename rest-api-spec/api/{indices.template.delete.json => indices.delete_template.json} (94%) rename rest-api-spec/api/{indices.warmer.delete.json => indices.delete_warmer.json} (97%) rename rest-api-spec/api/{indices.exists.indices.json => indices.exist_indices.json} (93%) rename rest-api-spec/api/{indices.exists.types.json => indices.exist_types.json} (96%) rename rest-api-spec/api/{indices.alias.exists.json => indices.exists_alias.json} (96%) rename rest-api-spec/api/{indices.alias.get.json => indices.get_alias.json} (97%) rename rest-api-spec/api/{indices.mapping.get.json => indices.get_mapping.json} (96%) rename rest-api-spec/api/{indices.template.get.json => indices.get_template.json} (93%) rename rest-api-spec/api/{indices.warmer.get.json => indices.get_warmer.json} (97%) rename rest-api-spec/api/{indices.alias.put.json => indices.put_alias.json} (97%) rename rest-api-spec/api/{indices.mapping.put.json => indices.put_mapping.json} (97%) rename rest-api-spec/api/{indices.template.put.json => indices.put_template.json} (96%) rename rest-api-spec/api/{indices.warmer.put.json => indices.put_warmer.json} (97%) diff --git a/rest-api-spec/api/indices.cache.clear.json b/rest-api-spec/api/indices.clear_cache.json similarity index 98% rename from rest-api-spec/api/indices.cache.clear.json rename to rest-api-spec/api/indices.clear_cache.json index cef5d04f73b..ad05af4aa3b 100644 --- a/rest-api-spec/api/indices.cache.clear.json +++ b/rest-api-spec/api/indices.clear_cache.json @@ -1,5 +1,5 @@ { - "indices.cache.clear": { + "indices.clear_cache": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-clearcache/", "methods": ["POST", "GET"], "url": { diff --git a/rest-api-spec/api/indices.alias.delete.json b/rest-api-spec/api/indices.delete_alias.json similarity index 96% rename from rest-api-spec/api/indices.alias.delete.json rename to rest-api-spec/api/indices.delete_alias.json index 5619e0b77f9..5bb5b5458df 100644 --- a/rest-api-spec/api/indices.alias.delete.json +++ b/rest-api-spec/api/indices.delete_alias.json @@ -1,5 +1,5 @@ { - "indices.alias.delete": { + "indices.delete_alias": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/", "methods": ["DELETE"], "url": { diff --git a/rest-api-spec/api/indices.mapping.delete.json b/rest-api-spec/api/indices.delete_mapping.json similarity index 95% rename from rest-api-spec/api/indices.mapping.delete.json rename to rest-api-spec/api/indices.delete_mapping.json index 086d032b50b..1daab891502 100644 --- a/rest-api-spec/api/indices.mapping.delete.json +++ b/rest-api-spec/api/indices.delete_mapping.json @@ -1,5 +1,5 @@ { - "indices.mapping.delete": { + "indices.delete_mapping": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-mapping/", "methods": ["DELETE"], "url": { diff --git a/rest-api-spec/api/indices.template.delete.json b/rest-api-spec/api/indices.delete_template.json similarity index 94% rename from rest-api-spec/api/indices.template.delete.json rename to rest-api-spec/api/indices.delete_template.json index 00c2e756e79..c6e7d69b14a 100644 --- a/rest-api-spec/api/indices.template.delete.json +++ b/rest-api-spec/api/indices.delete_template.json @@ -1,5 +1,5 @@ { - "indices.template.delete": { + "indices.delete_template": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/", "methods": ["DELETE"], "url": { diff --git a/rest-api-spec/api/indices.warmer.delete.json b/rest-api-spec/api/indices.delete_warmer.json similarity index 97% rename from rest-api-spec/api/indices.warmer.delete.json rename to rest-api-spec/api/indices.delete_warmer.json index 96ad4ff4bed..d05aef8c8b2 100644 --- a/rest-api-spec/api/indices.warmer.delete.json +++ b/rest-api-spec/api/indices.delete_warmer.json @@ -1,5 +1,5 @@ { - "indices.warmer.delete": { + "indices.delete_warmer": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/", "methods": ["DELETE"], "url": { diff --git a/rest-api-spec/api/indices.exists.indices.json b/rest-api-spec/api/indices.exist_indices.json similarity index 93% rename from rest-api-spec/api/indices.exists.indices.json rename to rest-api-spec/api/indices.exist_indices.json index c45e42b0b17..3ccab62b96b 100644 --- a/rest-api-spec/api/indices.exists.indices.json +++ b/rest-api-spec/api/indices.exist_indices.json @@ -1,5 +1,5 @@ { - "indices.exists.indices": { + "indices.exist_indices": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-indices-exists/", "methods": ["HEAD"], "url": { diff --git a/rest-api-spec/api/indices.exists.types.json b/rest-api-spec/api/indices.exist_types.json similarity index 96% rename from rest-api-spec/api/indices.exists.types.json rename to rest-api-spec/api/indices.exist_types.json index 7b650af2233..8e28ecab651 100644 --- a/rest-api-spec/api/indices.exists.types.json +++ b/rest-api-spec/api/indices.exist_types.json @@ -1,5 +1,5 @@ { - "indices.exists.types": { + "indices.exist_types": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-types-exists/", "methods": ["HEAD"], "url": { diff --git a/rest-api-spec/api/indices.alias.exists.json b/rest-api-spec/api/indices.exists_alias.json similarity index 96% rename from rest-api-spec/api/indices.alias.exists.json rename to rest-api-spec/api/indices.exists_alias.json index 9200cf7eddd..ba30bcc7720 100644 --- a/rest-api-spec/api/indices.alias.exists.json +++ b/rest-api-spec/api/indices.exists_alias.json @@ -1,5 +1,5 @@ { - "indices.alias.exists": { + "indices.exists_alias": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/", "methods": ["HEAD"], "url": { diff --git a/rest-api-spec/api/indices.alias.get.json b/rest-api-spec/api/indices.get_alias.json similarity index 97% rename from rest-api-spec/api/indices.alias.get.json rename to rest-api-spec/api/indices.get_alias.json index 21f8b388eb0..c8cd5d137da 100644 --- a/rest-api-spec/api/indices.alias.get.json +++ b/rest-api-spec/api/indices.get_alias.json @@ -1,5 +1,5 @@ { - "indices.alias.get": { + "indices.get_alias": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/", "methods": ["GET"], "url": { diff --git a/rest-api-spec/api/indices.mapping.get.json b/rest-api-spec/api/indices.get_mapping.json similarity index 96% rename from rest-api-spec/api/indices.mapping.get.json rename to rest-api-spec/api/indices.get_mapping.json index c4d651cdfcc..99e5b3fb95a 100644 --- a/rest-api-spec/api/indices.mapping.get.json +++ b/rest-api-spec/api/indices.get_mapping.json @@ -1,5 +1,5 @@ { - "indices.mapping.get": { + "indices.get_mapping": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-get-mapping/", "methods": ["GET"], "url": { diff --git a/rest-api-spec/api/indices.template.get.json b/rest-api-spec/api/indices.get_template.json similarity index 93% rename from rest-api-spec/api/indices.template.get.json rename to rest-api-spec/api/indices.get_template.json index f4d5c540dae..9066639c3b5 100644 --- a/rest-api-spec/api/indices.template.get.json +++ b/rest-api-spec/api/indices.get_template.json @@ -1,5 +1,5 @@ { - "indices.template.get": { + "indices.get_template": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/", "methods": ["GET"], "url": { diff --git a/rest-api-spec/api/indices.warmer.get.json b/rest-api-spec/api/indices.get_warmer.json similarity index 97% rename from rest-api-spec/api/indices.warmer.get.json rename to rest-api-spec/api/indices.get_warmer.json index 91c156737e1..7fdd06bc1a1 100644 --- a/rest-api-spec/api/indices.warmer.get.json +++ b/rest-api-spec/api/indices.get_warmer.json @@ -1,5 +1,5 @@ { - "indices.warmer.get": { + "indices.get_warmer": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/", "methods": ["GET"], "url": { diff --git a/rest-api-spec/api/indices.alias.put.json b/rest-api-spec/api/indices.put_alias.json similarity index 97% rename from rest-api-spec/api/indices.alias.put.json rename to rest-api-spec/api/indices.put_alias.json index 1f9ade1930e..16e59bbb072 100644 --- a/rest-api-spec/api/indices.alias.put.json +++ b/rest-api-spec/api/indices.put_alias.json @@ -1,5 +1,5 @@ { - "indices.alias.put": { + "indices.put_alias": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/", "methods": ["PUT"], "url": { diff --git a/rest-api-spec/api/indices.mapping.put.json b/rest-api-spec/api/indices.put_mapping.json similarity index 97% rename from rest-api-spec/api/indices.mapping.put.json rename to rest-api-spec/api/indices.put_mapping.json index 2bb64c31b7c..33390b90a12 100644 --- a/rest-api-spec/api/indices.mapping.put.json +++ b/rest-api-spec/api/indices.put_mapping.json @@ -1,5 +1,5 @@ { - "indices.mapping.put": { + "indices.put_mapping": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping/", "methods": ["PUT", "POST"], "url": { diff --git a/rest-api-spec/api/indices.template.put.json b/rest-api-spec/api/indices.put_template.json similarity index 96% rename from rest-api-spec/api/indices.template.put.json rename to rest-api-spec/api/indices.put_template.json index fff6032fe72..743843232fb 100644 --- a/rest-api-spec/api/indices.template.put.json +++ b/rest-api-spec/api/indices.put_template.json @@ -1,5 +1,5 @@ { - "indices.template.put": { + "indices.put_template": { "documentation": "", "methods": ["PUT", "POST"], "url": { diff --git a/rest-api-spec/api/indices.warmer.put.json b/rest-api-spec/api/indices.put_warmer.json similarity index 97% rename from rest-api-spec/api/indices.warmer.put.json rename to rest-api-spec/api/indices.put_warmer.json index 550a9892878..99339693197 100644 --- a/rest-api-spec/api/indices.warmer.put.json +++ b/rest-api-spec/api/indices.put_warmer.json @@ -1,5 +1,5 @@ { - "indices.warmer.put": { + "indices.put_warmer": { "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/", "methods": ["PUT"], "url": {