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 52614ce936290..cb078ec4a00b8 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 50b31f50beeff..2aa5edd4d5ae1 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 d6c7889f38030..241433d8c5cc4 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 4cd34532afda1..e02aa1b0d611a 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 a488e17689c90..2c89c1dcdd15d 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 e592f0f87be51..711a894094277 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 2c9c0866c923c..7317e4866a255 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 cb0a44700115d..acba8e58668cb 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 561f0c0d6c49f..36be2f1afedd8 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 2fd67e53e0a62..16a935517aa23 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 9a33d02a6a729..3246b8f73ea21 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 1aed758ae8df6..a97d3a5ca2bdd 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 b5360ea07374c..6a9ee3c424a57 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 159edf434a09b..9e17bf14a42dc 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 e3e107ef57af0..0fc951c424590 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 53e192f3c93a2..3217ec0ce62f6 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 ad52aec154920..c592d8c23db40 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 7387c6a74ff91..0b006fc023cf4 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 e8eb65311b40f..869b179a6cc7a 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 246b098c65bee..abf96f666e474 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 8cd90d608be8f..1087537114c14 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 58471aa8ee678..25b10a9147969 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 85486ec47ba9b..5bd6fd8b10273 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 1dfe94dd7716a..056a1421d719f 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 b3be596f68d54..eb01710fd8415 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 b4d515d8f3e2b..7af79af09ea9b 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 b6be87d19a1a6..40c5a8d9f0eae 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 f36920b9deff2..1ea7c37943931 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 66d2e39646a2a..7b8b2dbcedf1d 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 a3cbb4bf2a322..4681640f4b12f 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 e1254520f1205..4fdb89b891056 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 b59de5f6e9672..c7d8ece64d8eb 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 298614ec957b2..cd7f40cd86017 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 6adcebfbdd5ca..192cf7dcdf5ee 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 78d5f519968ff..e115a0ae06fb4 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 389cb23ee3b56..d0e2375d0014b 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 f526703f3fb4b..27c7e62ddaad0 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 c517b799220bc..38a8a13fba9fc 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 3d9a516fca20a..1104af560239d 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 a64f4465f2ee4..d407aa0bfe694 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 610128ca41313..35112389aa392 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 ec20a734b0e88..7a34094100d02 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 21ca4416c5f94..11f32801d4d19 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 878527f4da63b..d41785615090b 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 fca588ef4644d..f02ca3e4a4304 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 50f781f3aacd2..6beaf8ae85a6c 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 e8d9a3fc08308..0c7414f818411 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 cfce1f9d23d1d..d85e0d709944c 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 0ef21cd789f29..be119620d6cdf 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 54b299afb534d..9e591275927a8 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 57ca0e7bd9e6d..187cce0d07796 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 9c9ce428b134f..dfe3236c9c053 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 3eb87ee9c0bfd..4c2b7eaaa2fb2 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 27d461219ae1d..c6e4ec8295443 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 290687d9edc31..0b3758953b3fb 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 022cecf4504e2..b84f4d2cacbf3 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 33e1d7be0e623..d95c423b66db5 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 385c62f6d500c..8140c5748fb4d 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 66ce68e3ad210..10b69b2647f82 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 fe9a528abdf02..7c6c9cb32cd7d 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 220ff7d010019..1b9ab1bb5eff5 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 b6796721613a7..c75bf0e47ef96 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 659adf2febb0b..a0e947504b3a0 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 a68cf00a38a04..db819f446ad1d 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 28b336c14baf5..83a199cbdc045 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 024f269321209..ad55adc18933d 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 ee0fd433e7766..d86f2b0a3b810 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 06cc693275f71..f81fc337dd4ac 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 92a25a8e9c868..4770fba4e9c4a 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 a617000f072d1..36cc75e264935 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 c0da2fdca4429..8cbcfcdd25e53 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 942db010c6169..064c532917c74 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 5dfc4529bfab2..3ef98b8b0a54c 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 b6605e33b548a..58235afa281f2 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 517c85eb61bd6..6c3b574d23b0d 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 ebfc3a6898219..157aae6c9178e 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 49f1c0197e8ac..3d5addef6b5cb 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 73abcb76d283c..a39d492b5a40c 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 ce9dee96bb16b..ff64c40f6674e 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 3e779308fa8bf..111444b7ebca8 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 c953b1b875884..10830b4bb9504 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 f583045333c64..3be4d9387245b 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 93fe482851604..8c75adfe68bf0 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 7c7454870c84a..ce408a4e1e509 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 26c9082f807ed..a4cf1d0e387c8 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 42effd30bd99c..c1fec52fc8ca4 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 f8b783a81510d..f1b3168941814 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 3078d226c9bbe..e91226c1859f9 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 06471e1c1f5b5..cb98ef30df948 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 124e254dd2ebc..166b2b9d4190e 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 14f221c0b0049..5010c02424e5b 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 9f42e81591b32..bd8e258c2e206 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 d66dc29b4ac3e..6f3e0c5e9d3bb 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 2604ff25ad02e..412f4a508f433 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 0d85f72479643..7b722a5bebfa5 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 298d6c43b170b..b94fbaaaedf88 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 842a4bc398cbc..ca6637d81dcb4 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 fcc518fe5d225..e40e66cb266bb 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 c51748636eed0..50af7b6d478fc 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 64b0d071f91e2..6b70af58c08ea 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 61b17c7ddbb65..d49dd78721659 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 b01995feb6626..5de2bf9bd306f 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 4b45b0c2e8699..8bb2212d7a68a 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 35f7949f93525..e4305bdd7a484 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 b1620da35a312..a6957c5f7c71a 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 fe61c39c84dea..fa3af422fee17 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 e7d8a121413fe..3cb9c18ef2103 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 b06188815543c..88851b2db1e34 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 0f593b8b27132..30f5c6747f3a8 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 3db4bf6244ee4..082603209925e 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 b6eb3ad3498bc..a6777d0628126 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 a34cb61e6b80e..66be1eeff675c 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 0efaf26acb6c6..830eb2952886e 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 68637110537c9..c04dc5410ea10 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 fb25c55ef8452..1912423978173 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 1241d35f29083..b23a3fbc0281d 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 81b6f6edead82..9aa13758097c4 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 e46e2d56128f1..6107dd1663a37 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 d5d951ba4e2bb..e76ce7893951e 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 a477d4f284c1e..c875991b21a56 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 098acb08cb73f..4ee287ee6454b 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 808a09964b901..63702f7c592c6 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 0302598a6e7c6..8bb31723e0be4 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 0e157912b5d47..2bfacaf676c67 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 9a4aa3769f6da..4b850002a3337 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 12228c3c4a209..69d36f44140a3 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 9a14c7774990e..e79f2902329a6 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 72c94762a4314..421da469f3b3a 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 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 boolean isBodyRequired() { 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 3c6216eed76ed..cd797ae4e0705 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 ClientYamlSuiteRestApi parse(String location, XContentParser parser) thro 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 ClientYamlSuiteRestApi parse(String location, XContentParser parser) thro 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 8d1502577502e..3fd343a17e990 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 void testDuplicateMethods() throws Exception { parseAndExpectFailure("{\n" + " \"ping\": {" + " \"documentation\": \"http://www.elasticsearch.org/guide/\"," + + " \"stability\": \"stable\",\n" + " \"methods\": [\"PUT\", \"PUT\"]," + " \"url\": {" + " \"path\": \"/\"," + @@ -54,6 +55,7 @@ public void testDuplicatePaths() throws Exception { parseAndExpectFailure("{\n" + " \"ping\": {" + " \"documentation\": \"http://www.elasticsearch.org/guide/\"," + + " \"stability\": \"stable\",\n" + " \"methods\": [\"PUT\"]," + " \"url\": {" + " \"path\": \"/pingone\"," + @@ -94,6 +96,7 @@ private void parseAndExpectFailure(String brokenJson, String location, String ex 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 @@ private void parseAndExpectFailure(String brokenJson, String location, String ex 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 9ba393966a363..f2211f8feacfe 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 void testRequiredBodyWithoutUrlParts() throws Exception { 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 void testRequiredBodyWithoutUrlParts() throws Exception { 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 void testRequiredBodyWithoutUrlParts() throws Exception { 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 void testRequiredBodyWithoutUrlParts() throws Exception { 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 6aed24aa7d161..dd0be5a379d30 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 af09d82dbf8cc..ca7c7e9984ee4 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 e4c665705dbde..e2dcd8e83080c 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 8c92b1dc6d5e6..6901a39baf7b3 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 5f7d77b80d68e..843a5760e2ca8 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 82ccd8dc4d5dd..2511e68cb8edd 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 23defeeef5ac5..ff30da5d9ac22 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 ad576225fae4c..91a26268ce568 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 c9e41af5831e6..3c4481a7d7ee0 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 d678d725749fb..ab96a395efc2d 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 2275b13ba423f..0c68018319b09 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 ade79eed48717..30da72491df11 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 9ad633ce71345..10769a780da55 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 a8f5f7d5c25ad..cfbe22d703b7f 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 3dc71e96c0251..bbfcf61640c43 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 33f33c4bfa890..919682676da3c 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 3623fd297bcbf..0a1368514f1f8 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 a2e27bf4a4374..7c102bdb5a56a 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 4b14455a15975..4c82edadca339 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 0ad23acdac333..1abbc0a1b6ba0 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 416d8b3405d11..8c48b22a5eba5 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 4170e9270644e..174e99059a7e2 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 f3fe8d9833b4e..864a010c89e36 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 416acaf1c2ec2..bb8d6ec54a08f 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 80f562342154b..7e97c46b69440 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 4fd7bc65cab4e..82c05d5560e67 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 0f2d812f5ec11..cf9b8a30cf14b 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 a853faf11667c..c13f860b9e748 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 c47bd9db6047a..bee334e9f0b42 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 6a8949bdd6c0e..0f3d4d70239e0 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 8473d24476ef5..f8fb93a4401bb 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 22846cc605360..f5a6c28c8a323 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 ffeac8dcf95ea..84d506783d695 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 3a2a1f87e8ebf..dcf8e01837fed 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 68f009eec9905..d8d3489d0cf54 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 66bb1354ba21e..39cf43b03dc44 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 a4d0cd146559b..b0da3724eac60 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 2958f316da2ed..89dbf30e7a3af 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 bf297ecc342cc..ffba21b5f5ae6 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 0121745c55c02..f8aef2814a335 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 64cf0aed28692..5c414f56a19a3 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 a8889b8844825..38e49841c01d1 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 4854a01133dd5..8a78a850da413 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 cf9f864345137..9208c099a7324 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 a5e33563eedd5..838d986ba4142 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 4054b4ab74bdc..15a3dac18a98a 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 d4c4e1273032f..d048858c75dd6 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 5f522e725b84f..2d1220324b91e 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 36dd396aba321..5c4d2bfbcb8aa 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 b836d51f0459e..afab9575f7251 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 4de55ce2efe90..8cc83b7beb234 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 07ef222b8a149..18b808372e91d 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 8db600e27f998..953d1c40c7eb5 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 cb9cc9c73e2a5..5bc126db3dcf6 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 f0a1a792f9602..de8cd034a4065 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 ce68e673afede..74d0b1dd97120 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 6075f5fa47841..d3ec06b88518c 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 08d0b9ab26444..befcd94d93059 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 5921915e76929..f788776275cb3 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 abbf1f18f82b8..987551fa52a61 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 108580ce1ed66..8a29b68eca29f 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 d84f1a215f028..c57d977898ef7 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 ca5866cfc8892..42dca88ea2107 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 d15ee790d8271..c0d9f5202535a 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 9d5033ed4c1ca..51316c63a8848 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 d459f6011c984..2ee848a7f4323 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 95d3987cefb50..1bfcdeaefc338 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 960cc53dd2214..e3a857fca6b3e 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 63d75a51b5107..dfc00fc67a055 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 b45dc5d67fe73..1afabb5c0dc9f 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 1ddad330e5bff..b03a3011123ad 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 2114cb9cbaaca..f69733accc8b1 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 c194ba667964a..8523584d604f3 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 9270d829ca0fa..0f5e1849eef33 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 9187f441e41c3..c0296e577c116 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 08e6b19110343..d9ca8902d276a 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 867422be3b0b7..dc0f167798b61 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 d82faae9b057a..545f43085e36f 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 a153596e7fbf5..5774c08be588d 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 a56b34912b51f..2585a7096ddd0 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 6cd90e485c71f..3576b1f924cd8 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 3de92f78a0d63..a153547a5a84e 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 22d2cb9915e38..8486aee217b3f 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 f3ffd53f36961..9a2ff350c908d 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 3ad00e84c4565..c28817558e5cd 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 cbc4bea681db1..f84cf6e7bb4f9 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 f9b7742f11021..ce083b7a0b1f2 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 800345ccef843..9c72834a0239d 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 333f26a758753..0bf94ca336617 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 68d526ceb3bbf..b385cd4341cf5 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 c74eaa951f726..7a792617951f8 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 f8adf33902b51..3de6cbb08de7b 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 6198b3fd2e656..6d77b6c223095 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 7f16080d32d2b..57ed0d7778e56 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 a07fd8ca33ff5..196f27d3e4480 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 bfd847894216f..073277db9781c 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 f36c677a567c3..2e6e5198f7b2f 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 c091bddd74677..f446f55324049 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 7e293be1e7e51..271232f726a06 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 a61f42f259c9a..eecdd8a524248 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 22097e0ecc043..d36a2b7b4ce50 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 9f24206e89c72..3c8a43ee3efe3 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 d2952907aa1eb..e6697b43f837d 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 28b93dfd32db3..d3530fa8e0142 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 2feab34472cdd..1f002662245ec 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 3dae4a1104b53..9f3eca4fae84b 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 ba437c10bba36..53e9ab17faaa9 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 2925878a69f0d..73e0584ba99b3 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 d718213165b5a..da39ec0eaea80 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 9b5d2c95bc25a..3204de64dc8b0 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 b10b75225c3d2..65ef3c745b02e 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 f8a61b28b21fe..9d998513511ad 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 3a62142d70472..8b719f67f2b76 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 9005828eee3e9..0e6fdd819ceb9 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 2a1532944d8cb..a184314de6657 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 0571254bfb690..4f25d91b616a5 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 8868596fb05f5..6be12ec41fe4f 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 7d35bd9c8ec9f..3ae8897f4d78d 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 5e5855db93bb1..d71cdb476abc7 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 9bc48bc4820be..cca53053513b5 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 bb256e3bc9370..7f92622e1182f 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 7ddf234c016fb..5258d5b87641b 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 7dba6ab473224..f41e9b737dd9b 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 b4a6e4b80d68a..0ee2aad79c04d 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 e69b5a768a12c..25f13f5007b83 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 964a39008314e..9325f03b8c2d8 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 fd3841deaacb9..87f4500f165c7 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 417448ee77464..864427b93ae76 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 70e2768bf8051..593ac31fe759f 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 86c35df55741e..9e9c0e7a01ddc 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 c7ada3deda210..77e18e81fb3a8 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 a1098052ec778..44c75dff017ca 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 25ac1d9ee4b17..c036782947b4b 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 61c33f379c128..75d5bf276e4aa 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 ad30b13504f88..9923093dcecf0 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" ],