diff --git a/modules/lang-painless/src/test/resources/rest-api-spec/api/scripts_painless_context.json b/modules/lang-painless/src/test/resources/rest-api-spec/api/scripts_painless_context.json index 52614ce9362..cb078ec4a00 100644 --- a/modules/lang-painless/src/test/resources/rest-api-spec/api/scripts_painless_context.json +++ b/modules/lang-painless/src/test/resources/rest-api-spec/api/scripts_painless_context.json @@ -1,5 +1,6 @@ { "scripts_painless_context": { + "stability": "experimental", "methods": ["GET"], "url": { "paths": ["/_scripts/painless/_context"], diff --git a/plugins/examples/rest-handler/src/test/resources/rest-api-spec/api/cat.example.json b/plugins/examples/rest-handler/src/test/resources/rest-api-spec/api/cat.example.json index 50b31f50bee..2aa5edd4d5a 100644 --- a/plugins/examples/rest-handler/src/test/resources/rest-api-spec/api/cat.example.json +++ b/plugins/examples/rest-handler/src/test/resources/rest-api-spec/api/cat.example.json @@ -1,6 +1,7 @@ { "cat.example": { "documentation": "", + "stability" : "stable", "methods": ["GET"], "url": { "paths": ["/_cat/example"], diff --git a/rest-api-spec/README.markdown b/rest-api-spec/README.markdown index d6c7889f380..241433d8c5c 100644 --- a/rest-api-spec/README.markdown +++ b/rest-api-spec/README.markdown @@ -10,6 +10,7 @@ Example for the ["Create Index"](http://www.elastic.co/guide/en/elasticsearch/re { "indices.create": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { "paths": ["/{index}"], @@ -38,10 +39,30 @@ The specification contains: * The _name_ of the API (`indices.create`), which usually corresponds to the client calls * Link to the documentation at +* `stability` indicating the state of the API, has to be declared explicitly or YAML tests will fail + * `experimental` highly likely to break in the near future (minor/path), no bwc guarantees. + Possibly removed in the future. + * `beta` less likely to break or be removed but still reserve the right to do so + * `stable` No backwards breaking changes in a minor * List of HTTP methods for the endpoint * URL specification: path, parts, parameters * Whether body is allowed for the endpoint or not and its description +**NOTE** +If an API is stable but it response should be treated as an arbitrary map of key values please notate this as followed + +```json +{ + "api.name": { + "stability" : "stable", + "response": { + "treat_json_as_key_value" : true + } + } +} +``` + + The `methods` and `url.paths` elements list all possible HTTP methods and URLs for the endpoint; it is the responsibility of the developer to use this information for a sensible API on the target platform. diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json b/rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json index 4cd34532afd..e02aa1b0d61 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json @@ -1,6 +1,7 @@ { "bulk": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html", + "stability": "stable", "methods": ["POST", "PUT"], "url": { "paths": ["/_bulk", "/{index}/_bulk", "/{index}/{type}/_bulk"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.aliases.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.aliases.json index a488e17689c..2c89c1dcdd1 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.aliases.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.aliases.json @@ -1,6 +1,7 @@ { "cat.aliases": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/aliases", "/_cat/aliases/{name}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.allocation.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.allocation.json index e592f0f87be..711a8940942 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.allocation.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.allocation.json @@ -1,6 +1,7 @@ { "cat.allocation": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/allocation", "/_cat/allocation/{node_id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.count.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.count.json index 2c9c0866c92..7317e4866a2 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.count.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.count.json @@ -1,6 +1,7 @@ { "cat.count": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/count", "/_cat/count/{index}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.fielddata.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.fielddata.json index cb0a4470011..acba8e58668 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.fielddata.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.fielddata.json @@ -1,6 +1,7 @@ { "cat.fielddata": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/fielddata", "/_cat/fielddata/{fields}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.health.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.health.json index 561f0c0d6c4..36be2f1afed 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.health.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.health.json @@ -1,6 +1,7 @@ { "cat.health": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/health"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.help.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.help.json index 2fd67e53e0a..16a935517aa 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.help.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.help.json @@ -1,6 +1,7 @@ { "cat.help": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.indices.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.indices.json index 9a33d02a6a7..3246b8f73ea 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.indices.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.indices.json @@ -1,6 +1,7 @@ { "cat.indices": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/indices", "/_cat/indices/{index}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.master.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.master.json index 1aed758ae8d..a97d3a5ca2b 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.master.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.master.json @@ -1,6 +1,7 @@ { "cat.master": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/master"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodeattrs.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodeattrs.json index b5360ea0737..6a9ee3c424a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodeattrs.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodeattrs.json @@ -1,6 +1,7 @@ { "cat.nodeattrs": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/nodeattrs"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodes.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodes.json index 159edf434a0..9e17bf14a42 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodes.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodes.json @@ -1,6 +1,7 @@ { "cat.nodes": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/nodes"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.pending_tasks.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.pending_tasks.json index e3e107ef57a..0fc951c4245 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.pending_tasks.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.pending_tasks.json @@ -1,6 +1,7 @@ { "cat.pending_tasks": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/pending_tasks"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.plugins.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.plugins.json index 53e192f3c93..3217ec0ce62 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.plugins.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.plugins.json @@ -1,6 +1,7 @@ { "cat.plugins": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/plugins"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.recovery.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.recovery.json index ad52aec1549..c592d8c23db 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.recovery.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.recovery.json @@ -1,6 +1,7 @@ { "cat.recovery": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/recovery", "/_cat/recovery/{index}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.repositories.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.repositories.json index 7387c6a74ff..0b006fc023c 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.repositories.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.repositories.json @@ -1,6 +1,7 @@ { "cat.repositories": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/repositories"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json index e8eb65311b4..869b179a6cc 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json @@ -1,6 +1,7 @@ { "cat.segments": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/segments", "/_cat/segments/{index}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.shards.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.shards.json index 246b098c65b..abf96f666e4 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.shards.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.shards.json @@ -1,6 +1,7 @@ { "cat.shards": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/shards", "/_cat/shards/{index}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.snapshots.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.snapshots.json index 8cd90d608be..1087537114c 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.snapshots.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.snapshots.json @@ -1,6 +1,7 @@ { "cat.snapshots": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": [ diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.tasks.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.tasks.json index 58471aa8ee6..25b10a91479 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.tasks.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.tasks.json @@ -1,6 +1,7 @@ { "cat.tasks": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/tasks"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.templates.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.templates.json index 85486ec47ba..5bd6fd8b102 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.templates.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.templates.json @@ -1,6 +1,7 @@ { "cat.templates": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/templates", "/_cat/templates/{name}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.thread_pool.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.thread_pool.json index 1dfe94dd771..056a1421d71 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cat.thread_pool.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cat.thread_pool.json @@ -1,6 +1,7 @@ { "cat.thread_pool": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cat/thread_pool","/_cat/thread_pool/{thread_pool_patterns}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/clear_scroll.json b/rest-api-spec/src/main/resources/rest-api-spec/api/clear_scroll.json index b3be596f68d..eb01710fd84 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/clear_scroll.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/clear_scroll.json @@ -1,6 +1,7 @@ { "clear_scroll": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html", + "stability": "stable", "methods": ["DELETE"], "url": { "paths": [ "/_search/scroll"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.allocation_explain.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.allocation_explain.json index b4d515d8f3e..7af79af09ea 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.allocation_explain.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.allocation_explain.json @@ -1,6 +1,7 @@ { "cluster.allocation_explain": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/_cluster/allocation/explain"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.get_settings.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.get_settings.json index b6be87d19a1..40c5a8d9f0e 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.get_settings.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.get_settings.json @@ -1,6 +1,7 @@ { "cluster.get_settings": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cluster/settings"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.health.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.health.json index f36920b9def..1ea7c379439 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.health.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.health.json @@ -1,6 +1,7 @@ { "cluster.health": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cluster/health", "/_cluster/health/{index}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.pending_tasks.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.pending_tasks.json index 66d2e39646a..7b8b2dbcedf 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.pending_tasks.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.pending_tasks.json @@ -1,6 +1,7 @@ { "cluster.pending_tasks": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cluster/pending_tasks"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.put_settings.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.put_settings.json index a3cbb4bf2a3..4681640f4b1 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.put_settings.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.put_settings.json @@ -1,6 +1,7 @@ { "cluster.put_settings": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html", + "stability": "stable", "methods": ["PUT"], "url": { "paths": ["/_cluster/settings"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.remote_info.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.remote_info.json index e1254520f12..4fdb89b8910 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.remote_info.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.remote_info.json @@ -1,6 +1,7 @@ { "cluster.remote_info": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_remote/info"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.reroute.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.reroute.json index b59de5f6e96..c7d8ece64d8 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.reroute.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.reroute.json @@ -1,6 +1,7 @@ { "cluster.reroute": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_cluster/reroute"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.state.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.state.json index 298614ec957..cd7f40cd860 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.state.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.state.json @@ -1,6 +1,7 @@ { "cluster.state": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html", + "stability" : "stable", "methods": ["GET"], "url": { "paths": [ @@ -56,6 +57,9 @@ } } }, - "body": null + "body": null, + "response": { + "treat_json_as_key_value" : true + } } } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.stats.json b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.stats.json index 6adcebfbdd5..192cf7dcdf5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.stats.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/cluster.stats.json @@ -1,6 +1,7 @@ { "cluster.stats": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_cluster/stats", "/_cluster/stats/nodes/{node_id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/count.json b/rest-api-spec/src/main/resources/rest-api-spec/api/count.json index f9fd895add8..7165e219df9 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/count.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/count.json @@ -1,6 +1,7 @@ { "count": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html", + "stability": "stable", "methods": ["POST", "GET"], "url": { "paths": ["/_count", "/{index}/_count"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/create.json b/rest-api-spec/src/main/resources/rest-api-spec/api/create.json index 389cb23ee3b..d0e2375d001 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/create.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/create.json @@ -1,6 +1,7 @@ { "create": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html", + "stability": "stable", "methods": ["PUT","POST"], "url": { "paths": ["/{index}/_create/{id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/delete.json b/rest-api-spec/src/main/resources/rest-api-spec/api/delete.json index f526703f3fb..27c7e62ddaa 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/delete.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/delete.json @@ -1,6 +1,7 @@ { "delete": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html", + "stability": "stable", "methods": ["DELETE"], "url": { "paths": ["/{index}/_doc/{id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query.json b/rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query.json index c3c2a8d6ab6..dacacdc795a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query.json @@ -1,6 +1,7 @@ { "delete_by_query": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/{index}/_delete_by_query"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query_rethrottle.json b/rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query_rethrottle.json index 3d9a516fca2..1104af56023 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query_rethrottle.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query_rethrottle.json @@ -1,6 +1,7 @@ { "delete_by_query_rethrottle": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_delete_by_query/{task_id}/_rethrottle"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/delete_script.json b/rest-api-spec/src/main/resources/rest-api-spec/api/delete_script.json index a64f4465f2e..d407aa0bfe6 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/delete_script.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/delete_script.json @@ -1,6 +1,7 @@ { "delete_script": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", + "stability": "stable", "methods": ["DELETE"], "url": { "paths": [ "/_scripts/{id}" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/exists.json b/rest-api-spec/src/main/resources/rest-api-spec/api/exists.json index 610128ca413..35112389aa3 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/exists.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/exists.json @@ -1,6 +1,7 @@ { "exists": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", + "stability": "stable", "methods": ["HEAD"], "url": { "paths": ["/{index}/_doc/{id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/exists_source.json b/rest-api-spec/src/main/resources/rest-api-spec/api/exists_source.json index ec20a734b0e..7a34094100d 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/exists_source.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/exists_source.json @@ -1,6 +1,7 @@ { "exists_source": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", + "stability": "stable", "methods": ["HEAD"], "url": { "paths": ["/{index}/_source/{id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/explain.json b/rest-api-spec/src/main/resources/rest-api-spec/api/explain.json index 21ca4416c5f..11f32801d4d 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/explain.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/explain.json @@ -1,6 +1,7 @@ { "explain": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/{index}/_explain/{id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/field_caps.json b/rest-api-spec/src/main/resources/rest-api-spec/api/field_caps.json index 878527f4da6..d4178561509 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/field_caps.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/field_caps.json @@ -1,6 +1,7 @@ { "field_caps": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": [ diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/get.json b/rest-api-spec/src/main/resources/rest-api-spec/api/get.json index fca588ef464..f02ca3e4a43 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/get.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/get.json @@ -1,6 +1,7 @@ { "get": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/{index}/_doc/{id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/get_script.json b/rest-api-spec/src/main/resources/rest-api-spec/api/get_script.json index 50f781f3aac..6beaf8ae85a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/get_script.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/get_script.json @@ -1,6 +1,7 @@ { "get_script": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": [ "/_scripts/{id}" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/get_source.json b/rest-api-spec/src/main/resources/rest-api-spec/api/get_source.json index e8d9a3fc083..0c7414f8184 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/get_source.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/get_source.json @@ -1,6 +1,7 @@ { "get_source": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/{index}/_source/{id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/index.json b/rest-api-spec/src/main/resources/rest-api-spec/api/index.json index cfce1f9d23d..d85e0d70994 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/index.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/index.json @@ -1,6 +1,7 @@ { "index": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html", + "stability": "stable", "methods": ["POST", "PUT"], "url": { "paths": ["/{index}/_doc/{id}", "/{index}/_doc"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.analyze.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.analyze.json index 0ef21cd789f..be119620d6c 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.analyze.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.analyze.json @@ -1,6 +1,7 @@ { "indices.analyze": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/_analyze", "/{index}/_analyze"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.clear_cache.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.clear_cache.json index 54b299afb53..9e591275927 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.clear_cache.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.clear_cache.json @@ -1,6 +1,7 @@ { "indices.clear_cache": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_cache/clear", "/{index}/_cache/clear"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.close.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.close.json index 57ca0e7bd9e..187cce0d077 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.close.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.close.json @@ -1,6 +1,7 @@ { "indices.close": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/{index}/_close"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.create.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.create.json index 9c9ce428b13..dfe3236c9c0 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.create.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.create.json @@ -1,6 +1,7 @@ { "indices.create": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html", + "stability": "stable", "methods": ["PUT"], "url": { "paths": ["/{index}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete.json index 3eb87ee9c0b..4c2b7eaaa2f 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete.json @@ -1,6 +1,7 @@ { "indices.delete": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html", + "stability": "stable", "methods": ["DELETE"], "url": { "paths": ["/{index}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_alias.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_alias.json index 27d461219ae..c6e4ec82954 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_alias.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_alias.json @@ -1,6 +1,7 @@ { "indices.delete_alias": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", + "stability": "stable", "methods": ["DELETE"], "url": { "paths": ["/{index}/_alias/{name}", "/{index}/_aliases/{name}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_template.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_template.json index 290687d9edc..0b3758953b3 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_template.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_template.json @@ -1,6 +1,7 @@ { "indices.delete_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", + "stability": "stable", "methods": ["DELETE"], "url": { "paths": ["/_template/{name}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists.json index 022cecf4504..b84f4d2cacb 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists.json @@ -1,6 +1,7 @@ { "indices.exists": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html", + "stability": "stable", "methods": [ "HEAD" ], "url": { "paths": [ "/{index}" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_alias.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_alias.json index 33e1d7be0e6..d95c423b66d 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_alias.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_alias.json @@ -1,6 +1,7 @@ { "indices.exists_alias": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", + "stability": "stable", "methods": ["HEAD"], "url": { "paths": ["/_alias/{name}", "/{index}/_alias/{name}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_template.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_template.json index 385c62f6d50..8140c5748fb 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_template.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_template.json @@ -1,6 +1,7 @@ { "indices.exists_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", + "stability": "stable", "methods": ["HEAD"], "url": { "paths": [ "/_template/{name}" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_type.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_type.json index 66ce68e3ad2..10b69b2647f 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_type.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_type.json @@ -1,6 +1,7 @@ { "indices.exists_type": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html", + "stability": "stable", "methods": ["HEAD"], "deprecated" : { "version" : "7.0.0", diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush.json index fe9a528abdf..7c6c9cb32cd 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush.json @@ -1,6 +1,7 @@ { "indices.flush": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html", + "stability": "stable", "methods": ["POST", "GET"], "url": { "paths": ["/_flush", "/{index}/_flush"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json index 220ff7d0100..1b9ab1bb5ef 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json @@ -1,6 +1,7 @@ { "indices.flush_synced": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html", + "stability": "stable", "methods": ["POST", "GET"], "url": { "paths": [ diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.forcemerge.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.forcemerge.json index b6796721613..c75bf0e47ef 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.forcemerge.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.forcemerge.json @@ -1,6 +1,7 @@ { "indices.forcemerge": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_forcemerge", "/{index}/_forcemerge"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get.json index 659adf2febb..a0e947504b3 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get.json @@ -1,6 +1,7 @@ { "indices.get":{ "documentation":"http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html", + "stability": "stable", "methods":[ "GET" ], "url":{ "paths":[ "/{index}" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_alias.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_alias.json index a68cf00a38a..db819f446ad 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_alias.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_alias.json @@ -1,6 +1,7 @@ { "indices.get_alias": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": [ "/_alias", "/_alias/{name}", "/{index}/_alias/{name}", "/{index}/_alias"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_field_mapping.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_field_mapping.json index 28b336c14ba..83a199cbdc0 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_field_mapping.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_field_mapping.json @@ -1,6 +1,7 @@ { "indices.get_field_mapping": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_mapping/field/{fields}", "/{index}/_mapping/field/{fields}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_mapping.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_mapping.json index 024f2693212..ad55adc1893 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_mapping.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_mapping.json @@ -1,6 +1,7 @@ { "indices.get_mapping": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_mapping", "/{index}/_mapping"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_settings.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_settings.json index ee0fd433e77..d86f2b0a3b8 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_settings.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_settings.json @@ -1,6 +1,7 @@ { "indices.get_settings": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_settings", "/{index}/_settings", "/{index}/_settings/{name}", "/_settings/{name}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_template.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_template.json index 06cc693275f..f81fc337dd4 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_template.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_template.json @@ -1,6 +1,7 @@ { "indices.get_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": [ diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_upgrade.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_upgrade.json index 92a25a8e9c8..4770fba4e9c 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_upgrade.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_upgrade.json @@ -1,6 +1,7 @@ { "indices.get_upgrade": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_upgrade", "/{index}/_upgrade"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.open.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.open.json index a617000f072..36cc75e2649 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.open.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.open.json @@ -1,6 +1,7 @@ { "indices.open": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/{index}/_open"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_alias.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_alias.json index c0da2fdca44..8cbcfcdd25e 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_alias.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_alias.json @@ -1,6 +1,7 @@ { "indices.put_alias": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { "paths": ["/{index}/_alias/{name}", "/{index}/_aliases/{name}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_mapping.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_mapping.json index 942db010c61..064c532917c 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_mapping.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_mapping.json @@ -1,6 +1,7 @@ { "indices.put_mapping": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { "paths": ["{index}/_mapping"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_settings.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_settings.json index 5dfc4529bfa..3ef98b8b0a5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_settings.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_settings.json @@ -1,6 +1,7 @@ { "indices.put_settings": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html", + "stability": "stable", "methods": ["PUT"], "url": { "paths": ["/_settings", "/{index}/_settings"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_template.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_template.json index b6605e33b54..58235afa281 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_template.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_template.json @@ -1,6 +1,7 @@ { "indices.put_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { "paths": ["/_template/{name}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.recovery.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.recovery.json index 517c85eb61b..6c3b574d23b 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.recovery.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.recovery.json @@ -1,6 +1,7 @@ { "indices.recovery" : { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_recovery", "/{index}/_recovery"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.refresh.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.refresh.json index ebfc3a68982..157aae6c917 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.refresh.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.refresh.json @@ -1,6 +1,7 @@ { "indices.refresh": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html", + "stability": "stable", "methods": ["POST", "GET"], "url": { "paths": ["/_refresh", "/{index}/_refresh"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.rollover.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.rollover.json index 49f1c0197e8..3d5addef6b5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.rollover.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.rollover.json @@ -1,6 +1,7 @@ { "indices.rollover": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/{alias}/_rollover", "/{alias}/_rollover/{new_index}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.segments.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.segments.json index 73abcb76d28..a39d492b5a4 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.segments.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.segments.json @@ -1,6 +1,7 @@ { "indices.segments": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_segments", "/{index}/_segments"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.shard_stores.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.shard_stores.json index ce9dee96bb1..ff64c40f667 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.shard_stores.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.shard_stores.json @@ -1,6 +1,7 @@ { "indices.shard_stores": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_shard_stores", "/{index}/_shard_stores"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.shrink.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.shrink.json index c435b5dc911..8ffbf640748 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.shrink.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.shrink.json @@ -1,6 +1,7 @@ { "indices.shrink": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { "paths": ["/{index}/_shrink/{target}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.split.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.split.json index a25063a919f..3ac3c909c88 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.split.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.split.json @@ -1,6 +1,7 @@ { "indices.split": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { "paths": ["/{index}/_split/{target}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.stats.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.stats.json index f583045333c..3be4d938724 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.stats.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.stats.json @@ -1,6 +1,7 @@ { "indices.stats": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": [ diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.update_aliases.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.update_aliases.json index 93fe4828516..8c75adfe68b 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.update_aliases.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.update_aliases.json @@ -1,6 +1,7 @@ { "indices.update_aliases": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_aliases"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.upgrade.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.upgrade.json index 7c7454870c8..ce408a4e1e5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.upgrade.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.upgrade.json @@ -1,6 +1,7 @@ { "indices.upgrade": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_upgrade", "/{index}/_upgrade"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.validate_query.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.validate_query.json index 26c9082f807..a4cf1d0e387 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.validate_query.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.validate_query.json @@ -1,6 +1,7 @@ { "indices.validate_query": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/_validate/query", "/{index}/_validate/query"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/info.json b/rest-api-spec/src/main/resources/rest-api-spec/api/info.json index 42effd30bd9..c1fec52fc8c 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/info.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/info.json @@ -1,6 +1,7 @@ { "info": { "documentation": "http://www.elastic.co/guide/", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.delete_pipeline.json b/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.delete_pipeline.json index f8b783a8151..f1b31689418 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.delete_pipeline.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.delete_pipeline.json @@ -1,6 +1,7 @@ { "ingest.delete_pipeline": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_ingest/pipeline/{id}" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.get_pipeline.json b/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.get_pipeline.json index 3078d226c9b..e91226c1859 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.get_pipeline.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.get_pipeline.json @@ -1,6 +1,7 @@ { "ingest.get_pipeline": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ "/_ingest/pipeline", "/_ingest/pipeline/{id}" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.processor_grok.json b/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.processor_grok.json index 06471e1c1f5..cb98ef30df9 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.processor_grok.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.processor_grok.json @@ -1,6 +1,7 @@ { "ingest.processor_grok": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": ["/_ingest/processor/grok"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.put_pipeline.json b/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.put_pipeline.json index 124e254dd2e..166b2b9d419 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.put_pipeline.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.put_pipeline.json @@ -1,6 +1,7 @@ { "ingest.put_pipeline": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html", + "stability": "stable", "methods": [ "PUT" ], "url": { "paths": [ "/_ingest/pipeline/{id}" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.simulate.json b/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.simulate.json index 14f221c0b00..5010c02424e 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.simulate.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/ingest.simulate.json @@ -1,6 +1,7 @@ { "ingest.simulate": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html", + "stability": "stable", "methods": [ "GET", "POST" ], "url": { "paths": [ "/_ingest/pipeline/_simulate", "/_ingest/pipeline/{id}/_simulate" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/mget.json b/rest-api-spec/src/main/resources/rest-api-spec/api/mget.json index 9f42e81591b..bd8e258c2e2 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/mget.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/mget.json @@ -1,6 +1,7 @@ { "mget": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/_mget", "/{index}/_mget"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/msearch.json b/rest-api-spec/src/main/resources/rest-api-spec/api/msearch.json index f6427880fbe..2e68bf5f694 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/msearch.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/msearch.json @@ -1,6 +1,7 @@ { "msearch": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/_msearch", "/{index}/_msearch"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/msearch_template.json b/rest-api-spec/src/main/resources/rest-api-spec/api/msearch_template.json index 263cb7ce531..5bf76ba4989 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/msearch_template.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/msearch_template.json @@ -1,6 +1,7 @@ { "msearch_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/_msearch/template", "/{index}/_msearch/template"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/mtermvectors.json b/rest-api-spec/src/main/resources/rest-api-spec/api/mtermvectors.json index 484a87a49e1..29eb4e0aacc 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/mtermvectors.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/mtermvectors.json @@ -1,6 +1,7 @@ { "mtermvectors" : { "documentation" : "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html", + "stability": "stable", "methods" : ["GET", "POST"], "url" : { "paths" : ["/_mtermvectors", "/{index}/_mtermvectors"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.hot_threads.json b/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.hot_threads.json index 298d6c43b17..b94fbaaaedf 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.hot_threads.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.hot_threads.json @@ -1,6 +1,7 @@ { "nodes.hot_threads": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_nodes/hot_threads", "/_nodes/{node_id}/hot_threads"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.info.json b/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.info.json index 842a4bc398c..ca6637d81dc 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.info.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.info.json @@ -1,6 +1,7 @@ { "nodes.info": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_nodes", "/_nodes/{node_id}", "/_nodes/{metric}", "/_nodes/{node_id}/{metric}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.reload_secure_settings.json b/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.reload_secure_settings.json index fcc518fe5d2..e40e66cb266 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.reload_secure_settings.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.reload_secure_settings.json @@ -1,6 +1,7 @@ { "nodes.reload_secure_settings": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_nodes/reload_secure_settings", "/_nodes/{node_id}/reload_secure_settings"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.stats.json b/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.stats.json index c51748636ee..50af7b6d478 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.stats.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.stats.json @@ -1,6 +1,7 @@ { "nodes.stats": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": [ diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.usage.json b/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.usage.json index 64b0d071f91..6b70af58c08 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.usage.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.usage.json @@ -1,6 +1,7 @@ { "nodes.usage": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": [ diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/ping.json b/rest-api-spec/src/main/resources/rest-api-spec/api/ping.json index 61b17c7ddbb..d49dd787216 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/ping.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/ping.json @@ -1,6 +1,7 @@ { "ping": { "documentation": "http://www.elastic.co/guide/", + "stability": "stable", "methods": ["HEAD"], "url": { "paths": ["/"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/put_script.json b/rest-api-spec/src/main/resources/rest-api-spec/api/put_script.json index b01995feb66..5de2bf9bd30 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/put_script.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/put_script.json @@ -1,6 +1,7 @@ { "put_script": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { "paths": [ "/_scripts/{id}", "/_scripts/{id}/{context}" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/rank_eval.json b/rest-api-spec/src/main/resources/rest-api-spec/api/rank_eval.json index 4b45b0c2e86..8bb2212d7a6 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/rank_eval.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/rank_eval.json @@ -1,6 +1,7 @@ { "rank_eval": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html", + "stability" : "experimental", "methods": ["GET", "POST"], "url": { "paths": ["/_rank_eval", "/{index}/_rank_eval"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/reindex.json b/rest-api-spec/src/main/resources/rest-api-spec/api/reindex.json index 35f7949f935..e4305bdd7a4 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/reindex.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/reindex.json @@ -1,6 +1,7 @@ { "reindex": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_reindex"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/reindex_rethrottle.json b/rest-api-spec/src/main/resources/rest-api-spec/api/reindex_rethrottle.json index b1620da35a3..a6957c5f7c7 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/reindex_rethrottle.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/reindex_rethrottle.json @@ -1,6 +1,7 @@ { "reindex_rethrottle": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_reindex/{task_id}/_rethrottle"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/render_search_template.json b/rest-api-spec/src/main/resources/rest-api-spec/api/render_search_template.json index fe61c39c84d..fa3af422fee 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/render_search_template.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/render_search_template.json @@ -1,6 +1,7 @@ { "render_search_template": { "documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": [ "/_render/template", "/_render/template/{id}" ], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/scripts_painless_execute.json b/rest-api-spec/src/main/resources/rest-api-spec/api/scripts_painless_execute.json index e7d8a121413..3cb9c18ef21 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/scripts_painless_execute.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/scripts_painless_execute.json @@ -1,6 +1,7 @@ { "scripts_painless_execute": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html", + "stability" : "experimental", "methods": ["GET", "POST"], "url": { "paths": ["/_scripts/painless/_execute"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/scroll.json b/rest-api-spec/src/main/resources/rest-api-spec/api/scroll.json index b0618881554..88851b2db1e 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/scroll.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/scroll.json @@ -1,6 +1,7 @@ { "scroll": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/_search/scroll"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/search.json b/rest-api-spec/src/main/resources/rest-api-spec/api/search.json index 7b866ea2c0d..a09cf3a15e5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/search.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/search.json @@ -1,6 +1,7 @@ { "search": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/_search", "/{index}/_search"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/search_shards.json b/rest-api-spec/src/main/resources/rest-api-spec/api/search_shards.json index 3db4bf6244e..08260320992 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/search_shards.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/search_shards.json @@ -1,6 +1,7 @@ { "search_shards": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/_search_shards", "/{index}/_search_shards"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/search_template.json b/rest-api-spec/src/main/resources/rest-api-spec/api/search_template.json index ce6214c9a08..b9a279349d8 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/search_template.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/search_template.json @@ -1,6 +1,7 @@ { "search_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/_search/template", "/{index}/_search/template"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.create.json b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.create.json index a34cb61e6b8..66be1eeff67 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.create.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.create.json @@ -1,6 +1,7 @@ { "snapshot.create": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { "paths": ["/_snapshot/{repository}/{snapshot}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.create_repository.json b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.create_repository.json index 0efaf26acb6..830eb295288 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.create_repository.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.create_repository.json @@ -1,6 +1,7 @@ { "snapshot.create_repository": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { "paths": ["/_snapshot/{repository}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.delete.json b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.delete.json index 68637110537..c04dc5410ea 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.delete.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.delete.json @@ -1,6 +1,7 @@ { "snapshot.delete": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", + "stability": "stable", "methods": ["DELETE"], "url": { "paths": ["/_snapshot/{repository}/{snapshot}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.delete_repository.json b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.delete_repository.json index fb25c55ef84..19124239781 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.delete_repository.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.delete_repository.json @@ -1,6 +1,7 @@ { "snapshot.delete_repository": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", + "stability": "stable", "methods": ["DELETE"], "url": { "paths": ["/_snapshot/{repository}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.get.json b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.get.json index 1241d35f290..b23a3fbc028 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.get.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.get.json @@ -1,6 +1,7 @@ { "snapshot.get": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_snapshot/{repository}/{snapshot}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.get_repository.json b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.get_repository.json index 81b6f6edead..9aa13758097 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.get_repository.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.get_repository.json @@ -1,6 +1,7 @@ { "snapshot.get_repository": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_snapshot", "/_snapshot/{repository}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.restore.json b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.restore.json index e46e2d56128..6107dd1663a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.restore.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.restore.json @@ -1,6 +1,7 @@ { "snapshot.restore": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_snapshot/{repository}/{snapshot}/_restore"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.status.json b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.status.json index d5d951ba4e2..e76ce789395 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.status.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.status.json @@ -1,6 +1,7 @@ { "snapshot.status": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_snapshot/_status", "/_snapshot/{repository}/_status", "/_snapshot/{repository}/{snapshot}/_status"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.verify_repository.json b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.verify_repository.json index a477d4f284c..c875991b21a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.verify_repository.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.verify_repository.json @@ -1,6 +1,7 @@ { "snapshot.verify_repository": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_snapshot/{repository}/_verify"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.cancel.json b/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.cancel.json index 098acb08cb7..4ee287ee645 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.cancel.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.cancel.json @@ -1,6 +1,7 @@ { "tasks.cancel": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_tasks/_cancel", "/_tasks/{task_id}/_cancel"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.get.json b/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.get.json index 808a09964b9..63702f7c592 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.get.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.get.json @@ -1,6 +1,7 @@ { "tasks.get": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_tasks/{task_id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.list.json b/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.list.json index 0302598a6e7..8bb31723e0b 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.list.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.list.json @@ -1,6 +1,7 @@ { "tasks.list": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_tasks"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/termvectors.json b/rest-api-spec/src/main/resources/rest-api-spec/api/termvectors.json index 43481b3a0a5..429b5834520 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/termvectors.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/termvectors.json @@ -1,6 +1,7 @@ { "termvectors" : { "documentation" : "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html", + "stability": "stable", "methods" : ["GET", "POST"], "url" : { "paths" : ["/{index}/_termvectors/{id}", "/{index}/_termvectors"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/update.json b/rest-api-spec/src/main/resources/rest-api-spec/api/update.json index 9a4aa3769f6..4b850002a33 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/update.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/update.json @@ -1,6 +1,7 @@ { "update": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/{index}/_update/{id}"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query.json b/rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query.json index 3ad3a43ffc4..45fafe867ae 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query.json @@ -1,6 +1,7 @@ { "update_by_query": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/{index}/_update_by_query"], diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query_rethrottle.json b/rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query_rethrottle.json index 9a14c777499..e79f2902329 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query_rethrottle.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query_rethrottle.json @@ -1,6 +1,7 @@ { "update_by_query_rethrottle": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_update_by_query/{task_id}/_rethrottle"], diff --git a/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApi.java b/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApi.java index 72c94762a43..421da469f3b 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApi.java +++ b/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApi.java @@ -24,6 +24,7 @@ import org.apache.http.client.methods.HttpPut; import java.util.ArrayList; import java.util.HashMap; import java.util.List; +import java.util.Locale; import java.util.Map; import java.util.Set; @@ -39,6 +40,12 @@ public class ClientYamlSuiteRestApi { private Map pathParts = new HashMap<>(); private Map params = new HashMap<>(); private Body body = Body.NOT_SUPPORTED; + private Stability stability = Stability.UNKNOWN; + + public enum Stability + { + UNKNOWN, EXPERIMENTAL, BETA, STABLE + } public enum Body { NOT_SUPPORTED, OPTIONAL, REQUIRED @@ -139,6 +146,12 @@ public class ClientYamlSuiteRestApi { return body == Body.REQUIRED; } + public void setStability(String stability) { + this.stability = ClientYamlSuiteRestApi.Stability.valueOf(stability.toUpperCase(Locale.ROOT)); + } + + public Stability getStability() { return this.stability; } + /** * Finds the best matching rest path given the current parameters and replaces * placeholders with their corresponding values received as arguments diff --git a/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParser.java b/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParser.java index 3c6216eed76..cd797ae4e07 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParser.java +++ b/test/framework/src/main/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParser.java @@ -51,6 +51,19 @@ public class ClientYamlSuiteRestApiParser { while (parser.nextToken() != XContentParser.Token.END_OBJECT || level >= 0) { if (parser.currentToken() == XContentParser.Token.FIELD_NAME) { + if ("stability".equals(parser.currentName())) + { + parser.nextToken(); + String stability = parser.textOrNull(); + try { + restApi.setStability(stability); + } catch (IllegalArgumentException ex) + { + throw new IllegalArgumentException("API [" + apiName + "] sets wrong state for stability (" + + stability + ") [" + location + "]"); + } + } + if ("methods".equals(parser.currentName())) { parser.nextToken(); while (parser.nextToken() == XContentParser.Token.VALUE_STRING) { @@ -144,6 +157,10 @@ public class ClientYamlSuiteRestApiParser { assert parser.currentToken() == XContentParser.Token.END_OBJECT : "Expected [END_OBJECT] but was [" + parser.currentToken() +"]"; parser.nextToken(); + if (restApi.getStability() == ClientYamlSuiteRestApi.Stability.UNKNOWN) { + throw new IllegalArgumentException("API [" + apiName + "] does not explicitly declare its stability in [" + location + "]"); + } + return restApi; } diff --git a/test/framework/src/test/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParserFailingTests.java b/test/framework/src/test/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParserFailingTests.java index 8d150257750..3fd343a17e9 100644 --- a/test/framework/src/test/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParserFailingTests.java +++ b/test/framework/src/test/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParserFailingTests.java @@ -34,6 +34,7 @@ public class ClientYamlSuiteRestApiParserFailingTests extends ESTestCase { parseAndExpectFailure("{\n" + " \"ping\": {" + " \"documentation\": \"http://www.elasticsearch.org/guide/\"," + + " \"stability\": \"stable\",\n" + " \"methods\": [\"PUT\", \"PUT\"]," + " \"url\": {" + " \"path\": \"/\"," + @@ -54,6 +55,7 @@ public class ClientYamlSuiteRestApiParserFailingTests extends ESTestCase { parseAndExpectFailure("{\n" + " \"ping\": {" + " \"documentation\": \"http://www.elasticsearch.org/guide/\"," + + " \"stability\": \"stable\",\n" + " \"methods\": [\"PUT\"]," + " \"url\": {" + " \"path\": \"/pingone\"," + @@ -94,6 +96,7 @@ public class ClientYamlSuiteRestApiParserFailingTests extends ESTestCase { private static final String BROKEN_SPEC_PARAMS = "{\n" + " \"ping\": {" + " \"documentation\": \"http://www.elasticsearch.org/guide/\"," + + " \"stability\": \"stable\",\n" + " \"methods\": [\"HEAD\"]," + " \"url\": {" + " \"path\": \"/\"," + @@ -113,6 +116,7 @@ public class ClientYamlSuiteRestApiParserFailingTests extends ESTestCase { private static final String BROKEN_SPEC_PARTS = "{\n" + " \"ping\": {" + " \"documentation\": \"http://www.elasticsearch.org/guide/\"," + + " \"stability\": \"stable\",\n" + " \"methods\": [\"HEAD\"]," + " \"url\": {" + " \"path\": \"/\"," + diff --git a/test/framework/src/test/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParserTests.java b/test/framework/src/test/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParserTests.java index 9ba393966a3..f2211f8feac 100644 --- a/test/framework/src/test/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParserTests.java +++ b/test/framework/src/test/java/org/elasticsearch/test/rest/yaml/restspec/ClientYamlSuiteRestApiParserTests.java @@ -95,6 +95,7 @@ public class ClientYamlSuiteRestApiParserTests extends AbstractClientYamlTestFra String spec = "{\n" + " \"count\": {\n" + " \"documentation\": \"whatever\",\n" + + " \"stability\": \"stable\",\n" + " \"methods\": [ \"GET\", \"POST\" ],\n" + " \"url\": {\n" + " \"path\": \"/whatever\",\n" + @@ -119,6 +120,7 @@ public class ClientYamlSuiteRestApiParserTests extends AbstractClientYamlTestFra private static final String REST_SPEC_COUNT_API = "{\n" + " \"count\": {\n" + " \"documentation\": \"http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-count.html\",\n" + + " \"stability\": \"stable\",\n" + " \"methods\": [\"POST\", \"GET\"],\n" + " \"url\": {\n" + " \"path\": \"/_count\",\n" + @@ -149,6 +151,7 @@ public class ClientYamlSuiteRestApiParserTests extends AbstractClientYamlTestFra private static final String REST_SPEC_GET_TEMPLATE_API = "{\n" + " \"indices.get_template\": {\n" + " \"documentation\": \"http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/\",\n" + + " \"stability\": \"stable\",\n" + " \"methods\": [\"GET\"],\n" + " \"url\": {\n" + " \"path\": \"/_template/{name}\",\n" + @@ -170,6 +173,7 @@ public class ClientYamlSuiteRestApiParserTests extends AbstractClientYamlTestFra private static final String REST_SPEC_INDEX_API = "{\n" + " \"index\": {\n" + " \"documentation\": \"http://elasticsearch.org/guide/reference/api/index_/\",\n" + + " \"stability\": \"stable\",\n" + " \"methods\": [\"POST\", \"PUT\"],\n" + " \"url\": {\n" + " \"path\": \"/{index}/{type}\",\n" + diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.delete_auto_follow_pattern.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.delete_auto_follow_pattern.json index 6aed24aa7d1..dd0be5a379d 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.delete_auto_follow_pattern.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.delete_auto_follow_pattern.json @@ -1,6 +1,7 @@ { "ccr.delete_auto_follow_pattern": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html", + "stability" : "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_ccr/auto_follow/{name}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow.json index af09d82dbf8..ca7c7e9984e 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow.json @@ -1,6 +1,7 @@ { "ccr.follow": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html", + "stability" : "stable", "methods": [ "PUT" ], "url": { "paths": [ "/{index}/_ccr/follow" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow_info.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow_info.json index e4c665705db..e2dcd8e8308 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow_info.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow_info.json @@ -1,6 +1,7 @@ { "ccr.follow_info": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html", + "stability" : "stable", "methods": [ "GET" ], "url": { "paths": [ "/{index}/_ccr/info" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow_stats.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow_stats.json index 8c92b1dc6d5..6901a39baf7 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow_stats.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow_stats.json @@ -1,6 +1,7 @@ { "ccr.follow_stats": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html", + "stability" : "stable", "methods": [ "GET" ], "url": { "paths": [ "/{index}/_ccr/stats" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.forget_follower.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.forget_follower.json index 5f7d77b80d6..843a5760e2c 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.forget_follower.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.forget_follower.json @@ -1,6 +1,7 @@ { "ccr.forget_follower": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current", + "stability" : "stable", "methods": [ "POST" ], "url": { "paths": [ "/{index}/_ccr/forget_follower" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.get_auto_follow_pattern.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.get_auto_follow_pattern.json index 82ccd8dc4d5..2511e68cb8e 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.get_auto_follow_pattern.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.get_auto_follow_pattern.json @@ -1,6 +1,7 @@ { "ccr.get_auto_follow_pattern": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html", + "stability" : "stable", "methods": [ "GET" ], "url": { "paths": [ "/_ccr/auto_follow", "/_ccr/auto_follow/{name}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.pause_follow.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.pause_follow.json index 23defeeef5a..ff30da5d9ac 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.pause_follow.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.pause_follow.json @@ -1,6 +1,7 @@ { "ccr.pause_follow": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html", + "stability" : "stable", "methods": [ "POST" ], "url": { "paths": [ "/{index}/_ccr/pause_follow" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.put_auto_follow_pattern.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.put_auto_follow_pattern.json index ad576225fae..91a26268ce5 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.put_auto_follow_pattern.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.put_auto_follow_pattern.json @@ -1,6 +1,7 @@ { "ccr.put_auto_follow_pattern": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html", + "stability" : "stable", "methods": [ "PUT" ], "url": { "paths": [ "/_ccr/auto_follow/{name}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.resume_follow.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.resume_follow.json index c9e41af5831..3c4481a7d7e 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.resume_follow.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.resume_follow.json @@ -1,6 +1,7 @@ { "ccr.resume_follow": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html", + "stability" : "stable", "methods": [ "POST" ], "url": { "paths": [ "/{index}/_ccr/resume_follow" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.stats.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.stats.json index d678d725749..ab96a395efc 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.stats.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.stats.json @@ -1,6 +1,7 @@ { "ccr.stats": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html", + "stability" : "stable", "methods": [ "GET" ], "url": { "paths": [ "/_ccr/stats" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.unfollow.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.unfollow.json index 2275b13ba42..0c68018319b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.unfollow.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.unfollow.json @@ -1,6 +1,7 @@ { "ccr.unfollow": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current", + "stability" : "stable", "methods": [ "POST" ], "url": { "paths": [ "/{index}/_ccr/unfollow" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.delete_data_frame_transform.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.delete_data_frame_transform.json index ade79eed487..30da72491df 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.delete_data_frame_transform.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.delete_data_frame_transform.json @@ -1,6 +1,7 @@ { "data_frame.delete_data_frame_transform": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-data-frame-transform.html", + "stability": "beta", "methods": [ "DELETE" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.get_data_frame_transform.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.get_data_frame_transform.json index 9ad633ce713..10769a780da 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.get_data_frame_transform.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.get_data_frame_transform.json @@ -1,6 +1,7 @@ { "data_frame.get_data_frame_transform": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-data-frame-transform.html", + "stability": "beta", "methods": [ "GET" ], "url": { "paths": [ "/_data_frame/transforms/{transform_id}", "/_data_frame/transforms"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.get_data_frame_transform_stats.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.get_data_frame_transform_stats.json index a8f5f7d5c25..cfbe22d703b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.get_data_frame_transform_stats.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.get_data_frame_transform_stats.json @@ -1,6 +1,7 @@ { "data_frame.get_data_frame_transform_stats": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-data-frame-transform-stats.html", + "stability": "beta", "methods": [ "GET" ], "url": { "paths": [ "/_data_frame/transforms/{transform_id}/_stats" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.preview_data_frame_transform.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.preview_data_frame_transform.json index 3dc71e96c02..bbfcf61640c 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.preview_data_frame_transform.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.preview_data_frame_transform.json @@ -1,6 +1,7 @@ { "data_frame.preview_data_frame_transform": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-data-frame-transform.html", + "stability": "beta", "methods": [ "POST" ], "url": { "paths": [ "/_data_frame/transforms/_preview" ] diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.put_data_frame_transform.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.put_data_frame_transform.json index 33f33c4bfa8..919682676da 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.put_data_frame_transform.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.put_data_frame_transform.json @@ -1,6 +1,7 @@ { "data_frame.put_data_frame_transform": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-data-frame-transform.html", + "stability": "beta", "methods": [ "PUT" ], "url": { "paths": [ "/_data_frame/transforms/{transform_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.start_data_frame_transform.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.start_data_frame_transform.json index 3623fd297bc..0a1368514f1 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.start_data_frame_transform.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.start_data_frame_transform.json @@ -1,6 +1,7 @@ { "data_frame.start_data_frame_transform": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/start-data-frame-transform.html", + "stability": "beta", "methods": [ "POST" ], "url": { "paths": [ "/_data_frame/transforms/{transform_id}/_start" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.stop_data_frame_transform.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.stop_data_frame_transform.json index a2e27bf4a43..7c102bdb5a5 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.stop_data_frame_transform.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame.stop_data_frame_transform.json @@ -1,6 +1,7 @@ { "data_frame.stop_data_frame_transform": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-data-frame-transform.html", + "stability": "beta", "methods": [ "POST" ], "url": { "paths": [ "/_data_frame/transforms/{transform_id}/_stop" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/graph.explore.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/graph.explore.json index 4b14455a159..4c82edadca3 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/graph.explore.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/graph.explore.json @@ -1,6 +1,7 @@ { "graph.explore": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": ["/{index}/_graph/explore"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.delete_lifecycle.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.delete_lifecycle.json index 0ad23acdac3..1abbc0a1b6b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.delete_lifecycle.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.delete_lifecycle.json @@ -1,6 +1,7 @@ { "ilm.delete_lifecycle": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": ["/_ilm/policy/{policy}"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.explain_lifecycle.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.explain_lifecycle.json index 416d8b3405d..8c48b22a5eb 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.explain_lifecycle.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.explain_lifecycle.json @@ -1,6 +1,7 @@ { "ilm.explain_lifecycle": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": ["/{index}/_ilm/explain"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.get_lifecycle.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.get_lifecycle.json index 4170e927064..174e99059a7 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.get_lifecycle.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.get_lifecycle.json @@ -1,6 +1,7 @@ { "ilm.get_lifecycle": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": ["/_ilm/policy/{policy}", "/_ilm/policy"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.get_status.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.get_status.json index f3fe8d9833b..864a010c89e 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.get_status.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.get_status.json @@ -1,6 +1,7 @@ { "ilm.get_status": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": ["/_ilm/status"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.move_to_step.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.move_to_step.json index 416acaf1c2e..bb8d6ec54a0 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.move_to_step.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.move_to_step.json @@ -1,6 +1,7 @@ { "ilm.move_to_step": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html", + "stability": "stable", "description": "Triggers execution of a specific step in the lifecycle policy. Since this action is designed to only be run in emergency situations, clients should not implement this API", "methods": [ "POST" ], "url": { diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.put_lifecycle.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.put_lifecycle.json index 80f56234215..7e97c46b694 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.put_lifecycle.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.put_lifecycle.json @@ -1,6 +1,7 @@ { "ilm.put_lifecycle": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html", + "stability": "stable", "methods": [ "PUT" ], "url": { "paths": ["/_ilm/policy/{policy}"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.remove_policy.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.remove_policy.json index 4fd7bc65cab..82c05d5560e 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.remove_policy.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.remove_policy.json @@ -1,6 +1,7 @@ { "ilm.remove_policy": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": ["/{index}/_ilm/remove"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.retry.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.retry.json index 0f2d812f5ec..cf9b8a30cf1 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.retry.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.retry.json @@ -1,6 +1,7 @@ { "ilm.retry": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": ["/{index}/_ilm/retry"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.start.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.start.json index a853faf1166..c13f860b9e7 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.start.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.start.json @@ -1,6 +1,7 @@ { "ilm.start": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": ["/_ilm/start"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.stop.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.stop.json index c47bd9db604..bee334e9f0b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.stop.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ilm.stop.json @@ -1,6 +1,7 @@ { "ilm.stop": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": ["/_ilm/stop"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.freeze.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.freeze.json index 6a8949bdd6c..0f3d4d70239 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.freeze.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.freeze.json @@ -1,6 +1,7 @@ { "indices.freeze": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/frozen.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.unfreeze.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.unfreeze.json index 8473d24476e..f8fb93a4401 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.unfreeze.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/indices.unfreeze.json @@ -1,6 +1,7 @@ { "indices.unfreeze": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/frozen.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/{index}/_unfreeze" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.delete.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.delete.json index 22846cc6053..f5a6c28c8a3 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.delete.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.delete.json @@ -1,6 +1,7 @@ { "license.delete": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-license.html", + "stability": "stable", "methods": ["DELETE"], "url": { "paths": ["/_license"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get.json index ffeac8dcf95..84d506783d6 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get.json @@ -1,6 +1,7 @@ { "license.get": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_license"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get_basic_status.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get_basic_status.json index 3a2a1f87e8e..dcf8e01837f 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get_basic_status.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get_basic_status.json @@ -1,6 +1,7 @@ { "license.get_basic_status": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-basic-status.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_license/basic_status"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get_trial_status.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get_trial_status.json index 68f009eec99..d8d3489d0cf 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get_trial_status.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.get_trial_status.json @@ -1,6 +1,7 @@ { "license.get_trial_status": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-trial-status.html", + "stability": "stable", "methods": ["GET"], "url": { "paths": ["/_license/trial_status"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post.json index 66bb1354ba2..39cf43b03dc 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post.json @@ -1,6 +1,7 @@ { "license.post": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { "paths": ["/_license"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post_start_basic.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post_start_basic.json index a4d0cd14655..b0da3724eac 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post_start_basic.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post_start_basic.json @@ -1,6 +1,7 @@ { "license.post_start_basic": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/start-basic.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_license/start_basic"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post_start_trial.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post_start_trial.json index 2958f316da2..89dbf30e7a3 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post_start_trial.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/license.post_start_trial.json @@ -1,6 +1,7 @@ { "license.post_start_trial": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html", + "stability": "stable", "methods": ["POST"], "url": { "paths": ["/_license/start_trial"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/migration.deprecations.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/migration.deprecations.json index bf297ecc342..ffba21b5f5a 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/migration.deprecations.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/migration.deprecations.json @@ -1,6 +1,7 @@ { "migration.deprecations": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": ["/_migration/deprecations", "/{index}/_migration/deprecations"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.close_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.close_job.json index 0121745c55c..f8aef2814a3 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.close_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.close_job.json @@ -1,6 +1,7 @@ { "ml.close_job": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}/_close" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar.json index 64cf0aed286..5c414f56a19 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar.json @@ -1,5 +1,6 @@ { "ml.delete_calendar": { + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_ml/calendars/{calendar_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar_event.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar_event.json index a8889b88448..38e49841c01 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar_event.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar_event.json @@ -1,5 +1,6 @@ { "ml.delete_calendar_event": { + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_ml/calendars/{calendar_id}/events/{event_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar_job.json index 4854a01133d..8a78a850da4 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_calendar_job.json @@ -1,5 +1,6 @@ { "ml.delete_calendar_job": { + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_ml/calendars/{calendar_id}/jobs/{job_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_datafeed.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_datafeed.json index cf9f8643451..9208c099a73 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_datafeed.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_datafeed.json @@ -1,6 +1,7 @@ { "ml.delete_datafeed": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_ml/datafeeds/{datafeed_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_expired_data.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_expired_data.json index a5e33563eed..838d986ba41 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_expired_data.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_expired_data.json @@ -1,5 +1,6 @@ { "ml.delete_expired_data": { + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_ml/_delete_expired_data" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_filter.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_filter.json index 4054b4ab74b..15a3dac18a9 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_filter.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_filter.json @@ -1,6 +1,7 @@ { "ml.delete_filter": { "methods": [ "DELETE" ], + "stability": "stable", "url": { "paths": [ "/_ml/filters/{filter_id}" ], "parts": { diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_forecast.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_forecast.json index d4c4e127303..d048858c75d 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_forecast.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_forecast.json @@ -1,6 +1,7 @@ { "ml.delete_forecast": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_job.json index 5f522e725b8..2d1220324b9 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_job.json @@ -1,6 +1,7 @@ { "ml.delete_job": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_model_snapshot.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_model_snapshot.json index 36dd396aba3..5c4d2bfbcb8 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_model_snapshot.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_model_snapshot.json @@ -1,6 +1,7 @@ { "ml.delete_model_snapshot": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.find_file_structure.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.find_file_structure.json index b836d51f045..afab9575f72 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.find_file_structure.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.find_file_structure.json @@ -1,6 +1,7 @@ { "ml.find_file_structure": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html", + "stability" : "experimental", "methods": [ "POST" ], "url": { "paths": [ "/_ml/find_file_structure" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.flush_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.flush_job.json index 4de55ce2efe..8cc83b7beb2 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.flush_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.flush_job.json @@ -1,9 +1,8 @@ { "ml.flush_job": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html", - "methods": [ - "POST" - ], + "stability": "stable", + "methods": [ "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}/_flush" diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.forecast.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.forecast.json index 07ef222b8a1..18b808372e9 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.forecast.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.forecast.json @@ -1,5 +1,6 @@ { "ml.forecast": { + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}/_forecast" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_buckets.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_buckets.json index 8db600e27f9..953d1c40c7e 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_buckets.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_buckets.json @@ -1,6 +1,7 @@ { "ml.get_buckets": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html", + "stability": "stable", "methods": [ "GET", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_calendar_events.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_calendar_events.json index cb9cc9c73e2..5bc126db3dc 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_calendar_events.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_calendar_events.json @@ -1,5 +1,6 @@ { "ml.get_calendar_events": { + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_calendars.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_calendars.json index f0a1a792f96..de8cd034a40 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_calendars.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_calendars.json @@ -1,5 +1,6 @@ { "ml.get_calendars": { + "stability": "stable", "methods": [ "GET", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_categories.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_categories.json index ce68e673afe..74d0b1dd971 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_categories.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_categories.json @@ -1,6 +1,7 @@ { "ml.get_categories": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html", + "stability": "stable", "methods": [ "GET", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_datafeed_stats.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_datafeed_stats.json index 6075f5fa478..d3ec06b8851 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_datafeed_stats.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_datafeed_stats.json @@ -1,6 +1,7 @@ { "ml.get_datafeed_stats": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html", + "stability": "stable", "methods": [ "GET"], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_datafeeds.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_datafeeds.json index 08d0b9ab264..befcd94d930 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_datafeeds.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_datafeeds.json @@ -1,6 +1,7 @@ { "ml.get_datafeeds": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html", + "stability": "stable", "methods": [ "GET"], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_filters.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_filters.json index 5921915e769..f788776275c 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_filters.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_filters.json @@ -1,5 +1,6 @@ { "ml.get_filters": { + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ "/_ml/filters", "/_ml/filters/{filter_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_influencers.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_influencers.json index abbf1f18f82..987551fa52a 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_influencers.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_influencers.json @@ -1,6 +1,7 @@ { "ml.get_influencers": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html", + "stability": "stable", "methods": [ "GET", "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}/results/influencers" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_job_stats.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_job_stats.json index 108580ce1ed..8a29b68eca2 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_job_stats.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_job_stats.json @@ -1,6 +1,7 @@ { "ml.get_job_stats": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html", + "stability": "stable", "methods": [ "GET"], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_jobs.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_jobs.json index d84f1a215f0..c57d977898e 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_jobs.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_jobs.json @@ -1,6 +1,7 @@ { "ml.get_jobs": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html", + "stability": "stable", "methods": [ "GET"], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_model_snapshots.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_model_snapshots.json index ca5866cfc88..42dca88ea21 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_model_snapshots.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_model_snapshots.json @@ -1,6 +1,7 @@ { "ml.get_model_snapshots": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html", + "stability": "stable", "methods": [ "GET", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_overall_buckets.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_overall_buckets.json index d15ee790d82..c0d9f520253 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_overall_buckets.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_overall_buckets.json @@ -1,6 +1,7 @@ { "ml.get_overall_buckets": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html", + "stability": "stable", "methods": [ "GET", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_records.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_records.json index 9d5033ed4c1..51316c63a88 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_records.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_records.json @@ -1,6 +1,7 @@ { "ml.get_records": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.info.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.info.json index d459f6011c9..2ee848a7f43 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.info.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.info.json @@ -1,5 +1,6 @@ { "ml.info": { + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ "/_ml/info" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.open_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.open_job.json index 95d3987cefb..1bfcdeaefc3 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.open_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.open_job.json @@ -1,6 +1,7 @@ { "ml.open_job": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}/_open" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.post_calendar_events.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.post_calendar_events.json index 960cc53dd22..e3a857fca6b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.post_calendar_events.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.post_calendar_events.json @@ -1,5 +1,6 @@ { "ml.post_calendar_events": { + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/calendars/{calendar_id}/events" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.post_data.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.post_data.json index 63d75a51b51..dfc00fc67a0 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.post_data.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.post_data.json @@ -1,6 +1,7 @@ { "ml.post_data": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}/_data" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.preview_datafeed.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.preview_datafeed.json index b45dc5d67fe..1afabb5c0dc 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.preview_datafeed.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.preview_datafeed.json @@ -1,6 +1,7 @@ { "ml.preview_datafeed": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ "/_ml/datafeeds/{datafeed_id}/_preview" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_calendar.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_calendar.json index 1ddad330e5b..b03a3011123 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_calendar.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_calendar.json @@ -1,5 +1,6 @@ { "ml.put_calendar": { + "stability": "stable", "methods": [ "PUT" ], "url": { "paths": [ "/_ml/calendars/{calendar_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_calendar_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_calendar_job.json index 2114cb9cbaa..f69733accc8 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_calendar_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_calendar_job.json @@ -1,5 +1,6 @@ { "ml.put_calendar_job": { + "stability": "stable", "methods": [ "PUT" ], "url": { "paths": [ "/_ml/calendars/{calendar_id}/jobs/{job_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_datafeed.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_datafeed.json index c194ba66796..8523584d604 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_datafeed.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_datafeed.json @@ -1,6 +1,7 @@ { "ml.put_datafeed": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html", + "stability": "stable", "methods": [ "PUT" ], "url": { "paths": [ "/_ml/datafeeds/{datafeed_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_filter.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_filter.json index 9270d829ca0..0f5e1849eef 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_filter.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_filter.json @@ -1,5 +1,6 @@ { "ml.put_filter": { + "stability": "stable", "methods": [ "PUT" ], "url": { "paths": [ "/_ml/filters/{filter_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_job.json index 9187f441e41..c0296e577c1 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.put_job.json @@ -1,6 +1,7 @@ { "ml.put_job": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html", + "stability": "stable", "methods": [ "PUT" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.revert_model_snapshot.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.revert_model_snapshot.json index 08e6b191103..d9ca8902d27 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.revert_model_snapshot.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.revert_model_snapshot.json @@ -1,6 +1,7 @@ { "ml.revert_model_snapshot": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.set_upgrade_mode.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.set_upgrade_mode.json index 867422be3b0..dc0f167798b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.set_upgrade_mode.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.set_upgrade_mode.json @@ -1,6 +1,7 @@ { "ml.set_upgrade_mode": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/set_upgrade_mode" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.start_datafeed.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.start_datafeed.json index d82faae9b05..545f43085e3 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.start_datafeed.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.start_datafeed.json @@ -1,6 +1,7 @@ { "ml.start_datafeed": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/datafeeds/{datafeed_id}/_start" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.stop_datafeed.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.stop_datafeed.json index a153596e7fb..5774c08be58 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.stop_datafeed.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.stop_datafeed.json @@ -1,9 +1,8 @@ { "ml.stop_datafeed": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html", - "methods": [ - "POST" - ], + "stability": "stable", + "methods": [ "POST" ], "url": { "paths": [ "/_ml/datafeeds/{datafeed_id}/_stop" diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_datafeed.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_datafeed.json index a56b34912b5..2585a7096dd 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_datafeed.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_datafeed.json @@ -1,6 +1,7 @@ { "ml.update_datafeed": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/datafeeds/{datafeed_id}/_update" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_filter.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_filter.json index 6cd90e485c7..3576b1f924c 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_filter.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_filter.json @@ -1,5 +1,6 @@ { "ml.update_filter": { + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/filters/{filter_id}/_update" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_job.json index 3de92f78a0d..a153547a5a8 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_job.json @@ -1,6 +1,7 @@ { "ml.update_job": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}/_update" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_model_snapshot.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_model_snapshot.json index 22d2cb9915e..8486aee217b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_model_snapshot.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.update_model_snapshot.json @@ -1,6 +1,7 @@ { "ml.update_model_snapshot": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.validate.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.validate.json index f3ffd53f369..9a2ff350c90 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.validate.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.validate.json @@ -1,5 +1,6 @@ { "ml.validate": { + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/_validate" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.validate_detector.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.validate_detector.json index 3ad00e84c45..c28817558e5 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.validate_detector.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.validate_detector.json @@ -1,5 +1,6 @@ { "ml.validate_detector": { + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_ml/anomaly_detectors/_validate/detector" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/monitoring.bulk.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/monitoring.bulk.json index cbc4bea681d..f84cf6e7bb4 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/monitoring.bulk.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/monitoring.bulk.json @@ -1,6 +1,7 @@ { "monitoring.bulk": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/es-monitoring.html", + "stability" : "experimental", "methods": ["POST", "PUT"], "url": { "paths": ["/_monitoring/bulk"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.delete_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.delete_job.json index f9b7742f110..ce083b7a0b1 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.delete_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.delete_job.json @@ -1,6 +1,7 @@ { "rollup.delete_job": { "documentation": "", + "stability" : "experimental", "methods": [ "DELETE" ], "url": { "paths": [ "/_rollup/job/{id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_jobs.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_jobs.json index 800345ccef8..9c72834a023 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_jobs.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_jobs.json @@ -1,6 +1,7 @@ { "rollup.get_jobs": { "documentation": "", + "stability" : "experimental", "methods": [ "GET" ], "url": { "paths": [ "/_rollup/job/{id}", "/_rollup/job/" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_rollup_caps.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_rollup_caps.json index 333f26a7587..0bf94ca3366 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_rollup_caps.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_rollup_caps.json @@ -1,6 +1,7 @@ { "rollup.get_rollup_caps": { "documentation": "", + "stability" : "experimental", "methods": [ "GET" ], "url": { "paths": [ "/_rollup/data/{id}", "/_rollup/data/" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_rollup_index_caps.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_rollup_index_caps.json index 68d526ceb3b..b385cd4341c 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_rollup_index_caps.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.get_rollup_index_caps.json @@ -1,6 +1,7 @@ { "rollup.get_rollup_index_caps": { "documentation": "", + "stability" : "experimental", "methods": [ "GET" ], "url": { "paths": [ "/{index}/_rollup/data" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.put_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.put_job.json index c74eaa951f7..7a792617951 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.put_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.put_job.json @@ -1,6 +1,7 @@ { "rollup.put_job": { "documentation": "", + "stability" : "experimental", "methods": [ "PUT" ], "url": { "paths": [ "/_rollup/job/{id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.rollup_search.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.rollup_search.json index f8adf33902b..3de6cbb08de 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.rollup_search.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.rollup_search.json @@ -1,6 +1,7 @@ { "rollup.rollup_search": { "documentation": "", + "stability" : "experimental", "methods": [ "GET", "POST" ], "url": { "paths": [ "{index}/_rollup_search"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.start_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.start_job.json index 6198b3fd2e6..6d77b6c2230 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.start_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.start_job.json @@ -1,6 +1,7 @@ { "rollup.start_job": { "documentation": "", + "stability" : "experimental", "methods": [ "POST" ], "url": { "paths": [ "/_rollup/job/{id}/_start" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.stop_job.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.stop_job.json index 7f16080d32d..57ed0d7778e 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.stop_job.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/rollup.stop_job.json @@ -1,6 +1,7 @@ { "rollup.stop_job": { "documentation": "", + "stability" : "experimental", "methods": [ "POST" ], "url": { "paths": [ "/_rollup/job/{id}/_stop" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.authenticate.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.authenticate.json index a07fd8ca33f..196f27d3e44 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.authenticate.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.authenticate.json @@ -1,6 +1,7 @@ { "security.authenticate": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.change_password.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.change_password.json index bfd84789421..073277db978 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.change_password.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.change_password.json @@ -1,6 +1,7 @@ { "security.change_password": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.clear_cached_realms.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.clear_cached_realms.json index f36c677a567..2e6e5198f7b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.clear_cached_realms.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.clear_cached_realms.json @@ -1,6 +1,7 @@ { "security.clear_cached_realms": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.clear_cached_roles.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.clear_cached_roles.json index c091bddd746..f446f553240 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.clear_cached_roles.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.clear_cached_roles.json @@ -1,6 +1,7 @@ { "security.clear_cached_roles": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.create_api_key.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.create_api_key.json index 7e293be1e7e..271232f726a 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.create_api_key.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.create_api_key.json @@ -1,6 +1,7 @@ { "security.create_api_key": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ "/_security/api_key" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_privileges.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_privileges.json index a61f42f259c..eecdd8a5242 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_privileges.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_privileges.json @@ -1,6 +1,7 @@ { "security.delete_privileges": { "documentation": "TODO", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_role.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_role.json index 22097e0ecc0..d36a2b7b4ce 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_role.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_role.json @@ -1,6 +1,7 @@ { "security.delete_role": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_role_mapping.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_role_mapping.json index 9f24206e89c..3c8a43ee3ef 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_role_mapping.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_role_mapping.json @@ -1,6 +1,7 @@ { "security.delete_role_mapping": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_user.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_user.json index d2952907aa1..e6697b43f83 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_user.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.delete_user.json @@ -1,6 +1,7 @@ { "security.delete_user": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.disable_user.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.disable_user.json index 28b93dfd32d..d3530fa8e01 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.disable_user.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.disable_user.json @@ -1,6 +1,7 @@ { "security.disable_user": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.enable_user.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.enable_user.json index 2feab34472c..1f002662245 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.enable_user.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.enable_user.json @@ -1,6 +1,7 @@ { "security.enable_user": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_api_key.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_api_key.json index 3dae4a1104b..9f3eca4fae8 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_api_key.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_api_key.json @@ -1,6 +1,7 @@ { "security.get_api_key": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ "/_security/api_key" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_privileges.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_privileges.json index ba437c10bba..53e9ab17faa 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_privileges.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_privileges.json @@ -1,6 +1,7 @@ { "security.get_privileges": { "documentation": "TODO", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_role.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_role.json index 2925878a69f..73e0584ba99 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_role.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_role.json @@ -1,6 +1,7 @@ { "security.get_role": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_role_mapping.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_role_mapping.json index d718213165b..da39ec0eaea 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_role_mapping.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_role_mapping.json @@ -1,6 +1,7 @@ { "security.get_role_mapping": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_token.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_token.json index 9b5d2c95bc2..3204de64dc8 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_token.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_token.json @@ -1,6 +1,7 @@ { "security.get_token": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_user.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_user.json index b10b75225c3..65ef3c745b0 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_user.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_user.json @@ -1,6 +1,7 @@ { "security.get_user": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_user_privileges.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_user_privileges.json index f8a61b28b21..9d998513511 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_user_privileges.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.get_user_privileges.json @@ -1,6 +1,7 @@ { "security.get_user_privileges": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.has_privileges.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.has_privileges.json index 3a62142d704..8b719f67f2b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.has_privileges.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.has_privileges.json @@ -1,6 +1,7 @@ { "security.has_privileges": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html", + "stability": "stable", "methods": [ "GET", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.invalidate_api_key.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.invalidate_api_key.json index 9005828eee3..0e6fdd819ce 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.invalidate_api_key.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.invalidate_api_key.json @@ -1,6 +1,7 @@ { "security.invalidate_api_key": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_security/api_key" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.invalidate_token.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.invalidate_token.json index 2a1532944d8..a184314de66 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.invalidate_token.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.invalidate_token.json @@ -1,6 +1,7 @@ { "security.invalidate_token": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_privileges.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_privileges.json index 0571254bfb6..4f25d91b616 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_privileges.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_privileges.json @@ -1,6 +1,7 @@ { "security.put_privileges": { "documentation": "TODO", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_role.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_role.json index 8868596fb05..6be12ec41fe 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_role.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_role.json @@ -1,6 +1,7 @@ { "security.put_role": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_role_mapping.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_role_mapping.json index 7d35bd9c8ec..3ae8897f4d7 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_role_mapping.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_role_mapping.json @@ -1,6 +1,7 @@ { "security.put_role_mapping": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_user.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_user.json index 5e5855db93b..d71cdb476ab 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_user.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/security.put_user.json @@ -1,6 +1,7 @@ { "security.put_user": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.clear_cursor.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.clear_cursor.json index 9bc48bc4820..cca53053513 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.clear_cursor.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.clear_cursor.json @@ -1,6 +1,7 @@ { "sql.clear_cursor": { "documentation": "Clear SQL cursor", + "stability" : "stable", "methods": [ "POST"], "url": { "paths": [ "/_sql/close" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.query.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.query.json index bb256e3bc93..7f92622e118 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.query.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.query.json @@ -1,6 +1,7 @@ { "sql.query": { "documentation": "Execute SQL", + "stability" : "stable", "methods": [ "POST", "GET" ], "url": { "paths": [ "/_sql" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.translate.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.translate.json index 7ddf234c016..5258d5b8764 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.translate.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.translate.json @@ -1,6 +1,7 @@ { "sql.translate": { "documentation": "Translate SQL into Elasticsearch queries", + "stability" : "stable", "methods": [ "POST", "GET" ], "url": { "paths": [ "/_sql/translate" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ssl.certificates.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ssl.certificates.json index 7dba6ab4732..f41e9b737dd 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ssl.certificates.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ssl.certificates.json @@ -1,6 +1,7 @@ { "ssl.certificates": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.ack_watch.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.ack_watch.json index b4a6e4b80d6..0ee2aad79c0 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.ack_watch.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.ack_watch.json @@ -1,6 +1,7 @@ { "watcher.ack_watch": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ "/_watcher/watch/{watch_id}/_ack", "/_watcher/watch/{watch_id}/_ack/{action_id}"], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.activate_watch.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.activate_watch.json index e69b5a768a1..25f13f5007b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.activate_watch.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.activate_watch.json @@ -1,6 +1,7 @@ { "watcher.activate_watch": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ "/_watcher/watch/{watch_id}/_activate" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.deactivate_watch.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.deactivate_watch.json index 964a3900831..9325f03b8c2 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.deactivate_watch.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.deactivate_watch.json @@ -1,6 +1,7 @@ { "watcher.deactivate_watch": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ "/_watcher/watch/{watch_id}/_deactivate" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.delete_watch.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.delete_watch.json index fd3841deaac..87f4500f165 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.delete_watch.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.delete_watch.json @@ -1,7 +1,7 @@ { "watcher.delete_watch": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html", - + "stability": "stable", "methods": [ "DELETE" ], "url": { "paths": [ "/_watcher/watch/{id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.execute_watch.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.execute_watch.json index 417448ee774..864427b93ae 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.execute_watch.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.execute_watch.json @@ -1,6 +1,7 @@ { "watcher.execute_watch": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ "/_watcher/watch/{id}/_execute", "/_watcher/watch/_execute" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.get_watch.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.get_watch.json index 70e2768bf80..593ac31fe75 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.get_watch.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.get_watch.json @@ -1,6 +1,7 @@ { "watcher.get_watch": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ "/_watcher/watch/{id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.put_watch.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.put_watch.json index 86c35df5574..9e9c0e7a01d 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.put_watch.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.put_watch.json @@ -1,6 +1,7 @@ { "watcher.put_watch": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html", + "stability": "stable", "methods": [ "PUT", "POST" ], "url": { "paths": [ "/_watcher/watch/{id}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.start.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.start.json index c7ada3deda2..77e18e81fb3 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.start.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.start.json @@ -1,6 +1,7 @@ { "watcher.start": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_watcher/_start" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.stats.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.stats.json index a1098052ec7..44c75dff017 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.stats.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.stats.json @@ -1,6 +1,7 @@ { "watcher.stats": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ "/_watcher/stats", "/_watcher/stats/{metric}" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.stop.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.stop.json index 25ac1d9ee4b..c036782947b 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.stop.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/watcher.stop.json @@ -1,6 +1,7 @@ { "watcher.stop": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html", + "stability": "stable", "methods": [ "POST" ], "url": { "paths": [ "/_watcher/_stop" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/xpack.info.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/xpack.info.json index 61c33f379c1..75d5bf276e4 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/xpack.info.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/xpack.info.json @@ -1,6 +1,7 @@ { "xpack.info": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ "/_xpack" ], diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/xpack.usage.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/xpack.usage.json index ad30b13504f..9923093dcec 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/xpack.usage.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/xpack.usage.json @@ -1,6 +1,7 @@ { "xpack.usage": { "documentation": "Retrieve information about xpack features usage", + "stability": "stable", "methods": [ "GET" ], "url": { "paths": [ "/_xpack/usage" ],