Преглед на файлове

Introduce stability description to the REST API specification (#38413)

* introduce state to the REST API specification

* change state over to stability

* CCR is no GA updated to stable

* SQL is now GA so marked as stable

* Introduce `internal` as state for API's, marks stable in terms of lifetime but unstable in terms of guarantees on its output format since it exposes internal representations

* make setting a wrong stability value, or not setting it at all an error that causes the YAML test suite to fail

* update spec files to be explicit about their stability state

* Document the fact that stability needs to be defined

Otherwise the YAML test runner will fail (with a nice exception message)

* address check style violations

* update rest spec unit tests to include stability

* found one more test spec file not declaring stability, made sure stability appears after documentation everywhere

* cluster.state is stable, mark response in some way to denote its a key value format that can be changed during minors

* mark data frame API's as beta

* remove internal and private as states for an API

* removed the wrong enum values in the Stability Enum in the previous commit
Martijn Laarman преди 6 години
родител
ревизия
61c34bbd92
променени са 100 файла, в които са добавени 124 реда и са изтрити 1 реда
  1. 1 0
      modules/lang-painless/src/test/resources/rest-api-spec/api/scripts_painless_context.json
  2. 1 0
      plugins/examples/rest-handler/src/test/resources/rest-api-spec/api/cat.example.json
  3. 21 0
      rest-api-spec/README.markdown
  4. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json
  5. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.aliases.json
  6. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.allocation.json
  7. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.count.json
  8. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.fielddata.json
  9. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.health.json
  10. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.help.json
  11. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.indices.json
  12. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.master.json
  13. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodeattrs.json
  14. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.nodes.json
  15. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.pending_tasks.json
  16. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.plugins.json
  17. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.recovery.json
  18. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.repositories.json
  19. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json
  20. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.shards.json
  21. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.snapshots.json
  22. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.tasks.json
  23. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.templates.json
  24. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cat.thread_pool.json
  25. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/clear_scroll.json
  26. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cluster.allocation_explain.json
  27. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cluster.get_settings.json
  28. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cluster.health.json
  29. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cluster.pending_tasks.json
  30. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cluster.put_settings.json
  31. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cluster.remote_info.json
  32. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cluster.reroute.json
  33. 5 1
      rest-api-spec/src/main/resources/rest-api-spec/api/cluster.state.json
  34. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/cluster.stats.json
  35. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/count.json
  36. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/create.json
  37. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/delete.json
  38. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query.json
  39. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query_rethrottle.json
  40. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/delete_script.json
  41. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/exists.json
  42. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/exists_source.json
  43. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/explain.json
  44. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/field_caps.json
  45. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/get.json
  46. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/get_script.json
  47. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/get_source.json
  48. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/index.json
  49. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.analyze.json
  50. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.clear_cache.json
  51. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.close.json
  52. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.create.json
  53. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete.json
  54. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_alias.json
  55. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_template.json
  56. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists.json
  57. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_alias.json
  58. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_template.json
  59. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.exists_type.json
  60. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush.json
  61. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json
  62. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.forcemerge.json
  63. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.get.json
  64. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_alias.json
  65. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_field_mapping.json
  66. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_mapping.json
  67. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_settings.json
  68. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_template.json
  69. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_upgrade.json
  70. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.open.json
  71. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_alias.json
  72. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_mapping.json
  73. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_settings.json
  74. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_template.json
  75. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.recovery.json
  76. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.refresh.json
  77. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.rollover.json
  78. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.segments.json
  79. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.shard_stores.json
  80. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.shrink.json
  81. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.split.json
  82. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.stats.json
  83. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.update_aliases.json
  84. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.upgrade.json
  85. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/indices.validate_query.json
  86. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/info.json
  87. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/ingest.delete_pipeline.json
  88. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/ingest.get_pipeline.json
  89. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/ingest.processor_grok.json
  90. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/ingest.put_pipeline.json
  91. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/ingest.simulate.json
  92. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/mget.json
  93. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/msearch.json
  94. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/msearch_template.json
  95. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/mtermvectors.json
  96. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/nodes.hot_threads.json
  97. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/nodes.info.json
  98. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/nodes.reload_secure_settings.json
  99. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/nodes.stats.json
  100. 1 0
      rest-api-spec/src/main/resources/rest-api-spec/api/nodes.usage.json

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 21 - 0
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 <http://elastic.co>
+* `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.
 

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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": [

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 5 - 1
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
+    }
   }
 }

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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}" ],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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": [

+ 1 - 0
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}"],

+ 1 - 0
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}" ],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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}" ],

+ 1 - 0
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}"],

+ 1 - 0
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}" ],

+ 1 - 0
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",

+ 1 - 0
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"],

+ 1 - 0
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": [

+ 1 - 0
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"],

+ 1 - 0
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}" ],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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": [

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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}"],

+ 1 - 0
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": [

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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": ["/"],

+ 1 - 0
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}" ],

+ 1 - 0
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}" ],

+ 1 - 0
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"],

+ 1 - 0
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}" ],

+ 1 - 0
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" ],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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"],

+ 1 - 0
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}"],

+ 1 - 0
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"],

+ 1 - 0
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": [

+ 1 - 0
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": [

Някои файлове не бяха показани, защото твърде много файлове са промени