diff --git a/src/CodeGeneration/ApiGenerator/Configuration/CodeConfiguration.cs b/src/CodeGeneration/ApiGenerator/Configuration/CodeConfiguration.cs index 349d03c8162..df16580cd2b 100644 --- a/src/CodeGeneration/ApiGenerator/Configuration/CodeConfiguration.cs +++ b/src/CodeGeneration/ApiGenerator/Configuration/CodeConfiguration.cs @@ -17,6 +17,15 @@ public static class CodeConfiguration // these APIs are not ready for primetime yet "rank_eval.json", + "data_frame.delete_data_frame_transform.json", + "data_frame.get_data_frame_transform.json", + "data_frame.get_data_frame_transform_stats.json", + "data_frame.preview_data_frame_transform.json", + "data_frame.put_data_frame_transform.json", + "data_frame.start_data_frame_transform.json", + "data_frame.stop_data_frame_transform.json", + + "scripts_painless_context.json", // these APIs are new and need to be mapped "ml.set_upgrade_mode.json", diff --git a/src/CodeGeneration/ApiGenerator/Domain/Code/HighLevel/Requests/RequestPartialImplementation.cs b/src/CodeGeneration/ApiGenerator/Domain/Code/HighLevel/Requests/RequestPartialImplementation.cs index 08645958fab..97f5075156b 100644 --- a/src/CodeGeneration/ApiGenerator/Domain/Code/HighLevel/Requests/RequestPartialImplementation.cs +++ b/src/CodeGeneration/ApiGenerator/Domain/Code/HighLevel/Requests/RequestPartialImplementation.cs @@ -2,12 +2,13 @@ using ApiGenerator.Configuration; using ApiGenerator.Domain.Specification; -namespace ApiGenerator.Domain.Code.HighLevel.Requests +namespace ApiGenerator.Domain.Code.HighLevel.Requests { public class RequestPartialImplementation { public CsharpNames CsharpNames { get; set; } public string OfficialDocumentationLink { get; set; } + public Stability Stability { get; set; } public IReadOnlyCollection Parts { get; set; } public IReadOnlyCollection Paths { get; set; } public IReadOnlyCollection Params { get; set; } @@ -20,7 +21,7 @@ public class RequestPartialImplementation public bool NeedsGenericImplementation => !GenerateOnlyGenericInterface && !string.IsNullOrWhiteSpace(CsharpNames.GenericsDeclaredOnRequest); public string Name => CsharpNames.GenericOrNonGenericRequestPreference; - + public string InterfaceName => CsharpNames.GenericOrNonGenericInterfacePreference; } -} \ No newline at end of file +} diff --git a/src/CodeGeneration/ApiGenerator/Domain/Code/LowLevel/LowLevelClientMethod.cs b/src/CodeGeneration/ApiGenerator/Domain/Code/LowLevel/LowLevelClientMethod.cs index 90755594771..7ee9f1a4356 100644 --- a/src/CodeGeneration/ApiGenerator/Domain/Code/LowLevel/LowLevelClientMethod.cs +++ b/src/CodeGeneration/ApiGenerator/Domain/Code/LowLevel/LowLevelClientMethod.cs @@ -11,6 +11,8 @@ public class LowLevelClientMethod public string Arguments { get; set; } public string OfficialDocumentationLink { get; set; } + + public Stability Stability { get; set; } public string PerPathMethodName { get; set; } public string HttpMethod { get; set; } diff --git a/src/CodeGeneration/ApiGenerator/Domain/Specification/ApiEndpoint.cs b/src/CodeGeneration/ApiGenerator/Domain/Specification/ApiEndpoint.cs index fcf3c8fb991..e6d55f4de24 100644 --- a/src/CodeGeneration/ApiGenerator/Domain/Specification/ApiEndpoint.cs +++ b/src/CodeGeneration/ApiGenerator/Domain/Specification/ApiEndpoint.cs @@ -6,6 +6,7 @@ using ApiGenerator.Domain.Code.HighLevel.Requests; using ApiGenerator.Domain.Code.LowLevel; using Newtonsoft.Json; +using Newtonsoft.Json.Converters; namespace ApiGenerator.Domain.Specification { @@ -13,29 +14,33 @@ public class ApiEndpoint { /// The filename of the spec describing the api endpoint public string FileName { get; set; } - + /// The original name as declared in the spec public string Name { get; set; } - + /// The original namespace as declared in the spec public string Namespace { get; set; } - + /// The original method name as declared in the spec public string MethodName { get; set; } - + /// Computed Csharp identifier names - public CsharpNames CsharpNames { get; set; } - + public CsharpNames CsharpNames { get; set; } + + [JsonConverter(typeof(StringEnumConverter))] + [JsonProperty("stability")] + public Stability Stability { get; set; } + [JsonProperty("documentation")] public string OfficialDocumentationLink { get; set; } - + public UrlInformation Url { get; set; } - + public Body Body { get; set; } [JsonProperty("methods")] public IReadOnlyCollection HttpMethods { get; set; } - + public IEndpointOverrides Overrides { get; internal set; } public RequestInterface RequestInterface => new RequestInterface @@ -45,11 +50,12 @@ public class ApiEndpoint PartialParameters = Body == null ? Enumerable.Empty().ToList() : Url.Params.Values.Where(p=>p.RenderPartial && !p.Skip).ToList(), OfficialDocumentationLink = OfficialDocumentationLink }; - + public RequestPartialImplementation RequestPartialImplementation => new RequestPartialImplementation { CsharpNames = CsharpNames, OfficialDocumentationLink = OfficialDocumentationLink, + Stability = Stability, Paths = Url.Paths, Parts = Url.Parts, Params = Url.Params.Values.Where(p=>!p.Skip).ToList(), @@ -57,10 +63,10 @@ public class ApiEndpoint GenericConstructors = Constructor.RequestConstructors(CsharpNames, Url, inheritsFromPlainRequestBase: false).ToList(), HasBody = Body != null, }; - + public DescriptorPartialImplementation DescriptorPartialImplementation => new DescriptorPartialImplementation { - CsharpNames = CsharpNames, + CsharpNames = CsharpNames, OfficialDocumentationLink = OfficialDocumentationLink, Constructors = Constructor.DescriptorConstructors(CsharpNames, Url).ToList(), Paths = Url.Paths, @@ -68,7 +74,7 @@ public class ApiEndpoint Params = Url.Params.Values.Where(p=>!p.Skip).ToList(), HasBody = Body != null, }; - + public RequestParameterImplementation RequestParameterImplementation => new RequestParameterImplementation { CsharpNames = CsharpNames, @@ -89,7 +95,7 @@ public string PreferredHttpMethod } public string HighLevelMethodXmlDocDescription => $"{PreferredHttpMethod} request to the {Name} API, read more about this API online:"; - + public HighLevelModel HighLevelModel => new HighLevelModel { CsharpNames = CsharpNames, @@ -132,7 +138,7 @@ public IReadOnlyCollection LowLevelClientMethods .Select(p => p.Argument) .Concat(new[] { CsharpNames.ParametersName + " requestParameters = null" }) .ToList(); - + var apiMethod = new LowLevelClientMethod { Arguments = string.Join(", ", args), @@ -140,7 +146,8 @@ public IReadOnlyCollection LowLevelClientMethods PerPathMethodName = methodName, HttpMethod = httpMethod, OfficialDocumentationLink = OfficialDocumentationLink, - DeprecatedPath = path.Deprecation, + Stability = Stability, + DeprecatedPath = path.Deprecation, Path = path.Path, Parts = parts, Url = Url, diff --git a/src/CodeGeneration/ApiGenerator/Domain/Specification/Stability.cs b/src/CodeGeneration/ApiGenerator/Domain/Specification/Stability.cs new file mode 100644 index 00000000000..ebae8185d61 --- /dev/null +++ b/src/CodeGeneration/ApiGenerator/Domain/Specification/Stability.cs @@ -0,0 +1,25 @@ +using System.Runtime.Serialization; + +namespace ApiGenerator.Domain.Specification +{ + public enum Stability + { + /// + /// Highly likely to break in the near future (minor/path), no BWC guarantees. Possibly removed in the future. + /// + [EnumMember(Value = "experimental")] + Experimental, + + /// + /// Less likely to break or be removed but still reserve the right to do so. + /// + [EnumMember(Value = "beta")] + Beta, + + /// + /// No backwards breaking changes in a minor. + /// + [EnumMember(Value = "stable")] + Stable + } +} diff --git a/src/CodeGeneration/ApiGenerator/Generator/ApiGenerator.cs b/src/CodeGeneration/ApiGenerator/Generator/ApiGenerator.cs index 65bfa600ef0..3ef079c518b 100644 --- a/src/CodeGeneration/ApiGenerator/Generator/ApiGenerator.cs +++ b/src/CodeGeneration/ApiGenerator/Generator/ApiGenerator.cs @@ -48,6 +48,15 @@ public static async Task Generate(string downloadBranch, params string[] folders } } + // Check if there are any non-Stable endpoints present. + foreach (var endpoint in spec.Endpoints) + { + if (endpoint.Value.Stability != Stability.Stable) + { + Warnings.Add($"Endpoint {endpoint.Value.Name} is not marked as Stable ({endpoint.Value.Stability})"); + } + } + if (Warnings.Count == 0) return; Console.ForegroundColor = ConsoleColor.Yellow; @@ -106,7 +115,6 @@ private static RestApiSpec CreateRestApiSpecModel(string downloadBranch, string[ var isIgnored = CodeConfiguration.IgnoredApis.Contains($"{value}.json"); if (isIgnored) Warnings.Add($"{value} uses MapsApi: {key} ignored in ${nameof(CodeConfiguration)}.{nameof(CodeConfiguration.IgnoredApis)}"); else Warnings.Add($"{value} uses MapsApi: {key} which does not exist"); - } return new RestApiSpec { Endpoints = endpoints, Commit = downloadBranch }; @@ -119,7 +127,5 @@ private static SortedDictionary CreateCommonApiQueryPar var commonParameters = jobject.Property("params").Value.ToObject>(); return ApiQueryParametersPatcher.Patch(null, commonParameters, null, false); } - - } } diff --git a/src/CodeGeneration/ApiGenerator/Generator/CodeGenerator.cs b/src/CodeGeneration/ApiGenerator/Generator/CodeGenerator.cs index 3111820d9bd..00c52168a31 100644 --- a/src/CodeGeneration/ApiGenerator/Generator/CodeGenerator.cs +++ b/src/CodeGeneration/ApiGenerator/Generator/CodeGenerator.cs @@ -44,7 +44,6 @@ void A(string s) } } - private static IEnumerable RenderDocumentation(params string[] doc) { doc = (doc?.SelectMany(WrapDocumentation) ?? Enumerable.Empty()).ToArray(); diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/bulk.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/bulk.json index a07f362bef0..e02aa1b0d61 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/bulk.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/bulk.json @@ -1,9 +1,9 @@ { "bulk": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html", + "stability": "stable", "methods": ["POST", "PUT"], "url": { - "path": "/_bulk", "paths": ["/_bulk", "/{index}/_bulk", "/{index}/{type}/_bulk"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.aliases.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.aliases.json index d30c6ace6f7..2c89c1dcdd1 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.aliases.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.aliases.json @@ -1,9 +1,9 @@ { "cat.aliases": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/aliases", "paths": ["/_cat/aliases", "/_cat/aliases/{name}"], "parts": { "name": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.allocation.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.allocation.json index 7c826890607..711a8940942 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.allocation.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.allocation.json @@ -1,9 +1,9 @@ { "cat.allocation": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/allocation", "paths": ["/_cat/allocation", "/_cat/allocation/{node_id}"], "parts": { "node_id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.count.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.count.json index 4311d9a3be1..7317e4866a2 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.count.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.count.json @@ -1,9 +1,9 @@ { "cat.count": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/count", "paths": ["/_cat/count", "/_cat/count/{index}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.fielddata.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.fielddata.json index 88c7eee1262..acba8e58668 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.fielddata.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.fielddata.json @@ -1,9 +1,9 @@ { "cat.fielddata": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/fielddata", "paths": ["/_cat/fielddata", "/_cat/fielddata/{fields}"], "parts": { "fields": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.health.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.health.json index e858e83b465..36be2f1afed 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.health.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.health.json @@ -1,9 +1,9 @@ { "cat.health": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/health", "paths": ["/_cat/health"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.help.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.help.json index e893fb1b044..16a935517aa 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.help.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.help.json @@ -1,9 +1,9 @@ { "cat.help": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat", "paths": ["/_cat"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.indices.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.indices.json index 42a47253de7..3246b8f73ea 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.indices.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.indices.json @@ -1,9 +1,9 @@ { "cat.indices": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/indices", "paths": ["/_cat/indices", "/_cat/indices/{index}"], "parts": { "index": { @@ -57,6 +57,11 @@ "type": "boolean", "description": "Verbose mode. Display column headers", "default": false + }, + "include_unloaded_segments": { + "type": "boolean", + "description": "If set to true segment stats will include stats for segments that are not currently loaded into memory", + "default": false } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.master.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.master.json index ab87b2adb7e..a97d3a5ca2b 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.master.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.master.json @@ -1,9 +1,9 @@ { "cat.master": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/master", "paths": ["/_cat/master"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.nodeattrs.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.nodeattrs.json index 3d8a4a77a77..6a9ee3c424a 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.nodeattrs.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.nodeattrs.json @@ -1,9 +1,9 @@ { "cat.nodeattrs": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/nodeattrs", "paths": ["/_cat/nodeattrs"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.nodes.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.nodes.json index 1b3c1266a63..9e17bf14a42 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.nodes.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.nodes.json @@ -1,9 +1,9 @@ { "cat.nodes": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/nodes", "paths": ["/_cat/nodes"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.pending_tasks.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.pending_tasks.json index 983b82482ae..0fc951c4245 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.pending_tasks.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.pending_tasks.json @@ -1,9 +1,9 @@ { "cat.pending_tasks": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/pending_tasks", "paths": ["/_cat/pending_tasks"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.plugins.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.plugins.json index 93c7feababa..3217ec0ce62 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.plugins.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.plugins.json @@ -1,9 +1,9 @@ { "cat.plugins": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/plugins", "paths": ["/_cat/plugins"], "params": { "format": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.recovery.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.recovery.json index 42f91cedfdd..c592d8c23db 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.recovery.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.recovery.json @@ -1,9 +1,9 @@ { "cat.recovery": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/recovery", "paths": ["/_cat/recovery", "/_cat/recovery/{index}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.repositories.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.repositories.json index c640a568fde..0b006fc023c 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.repositories.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.repositories.json @@ -1,9 +1,9 @@ { "cat.repositories": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/repositories", "paths": ["/_cat/repositories"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.segments.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.segments.json index 3306b2f753b..869b179a6cc 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.segments.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.segments.json @@ -1,9 +1,9 @@ { "cat.segments": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/segments", "paths": ["/_cat/segments", "/_cat/segments/{index}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.shards.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.shards.json index 2ad714e7225..abf96f666e4 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.shards.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.shards.json @@ -1,9 +1,9 @@ { "cat.shards": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/shards", "paths": ["/_cat/shards", "/_cat/shards/{index}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.snapshots.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.snapshots.json index eec22e2e041..1087537114c 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.snapshots.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.snapshots.json @@ -1,9 +1,9 @@ { "cat.snapshots": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/snapshots", "paths": [ "/_cat/snapshots", "/_cat/snapshots/{repository}"], diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.json index 1958843e601..25b10a91479 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.tasks.json @@ -1,9 +1,9 @@ { "cat.tasks": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/tasks", "paths": ["/_cat/tasks"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.templates.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.templates.json index f0757c2d652..5bd6fd8b102 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.templates.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.templates.json @@ -1,9 +1,9 @@ { "cat.templates": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/templates", "paths": ["/_cat/templates", "/_cat/templates/{name}"], "parts": { "name": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.thread_pool.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.thread_pool.json index 70a11000bbe..056a1421d71 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.thread_pool.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cat.thread_pool.json @@ -1,9 +1,9 @@ { "cat.thread_pool": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cat/thread_pool", "paths": ["/_cat/thread_pool","/_cat/thread_pool/{thread_pool_patterns}"], "parts": { "thread_pool_patterns": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/clear_scroll.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/clear_scroll.json index 6b82d1dc474..eb01710fd84 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/clear_scroll.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/clear_scroll.json @@ -1,10 +1,17 @@ { "clear_scroll": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html", + "stability": "stable", "methods": ["DELETE"], "url": { - "path": "/_search/scroll/{scroll_id}", - "paths": ["/_search/scroll/{scroll_id}", "/_search/scroll"], + "paths": [ "/_search/scroll"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/_search/scroll/{scroll_id}", + "description" : "A scroll id can be quite large and should be specified as part of the body" + } + ], "parts": { "scroll_id": { "type" : "list", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.allocation_explain.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.allocation_explain.json index 26b24cfb697..7af79af09ea 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.allocation_explain.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.allocation_explain.json @@ -1,9 +1,9 @@ { "cluster.allocation_explain": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { - "path": "/_cluster/allocation/explain", "paths": ["/_cluster/allocation/explain"], "parts": {}, "params": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.get_settings.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.get_settings.json index baba4e3436a..40c5a8d9f0e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.get_settings.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.get_settings.json @@ -1,9 +1,9 @@ { "cluster.get_settings": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cluster/settings", "paths": ["/_cluster/settings"], "parts": {}, "params": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.health.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.health.json index ee32a87c927..1ea7c379439 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.health.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.health.json @@ -1,9 +1,9 @@ { "cluster.health": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cluster/health", "paths": ["/_cluster/health", "/_cluster/health/{index}"], "parts": { "index": { @@ -12,6 +12,12 @@ } }, "params": { + "expand_wildcards": { + "type" : "enum", + "options" : ["open","closed","none","all"], + "default" : "all", + "description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both." + }, "level": { "type" : "enum", "options" : ["cluster","indices","shards"], diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.pending_tasks.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.pending_tasks.json index fb5e1609ff3..7b8b2dbcedf 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.pending_tasks.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.pending_tasks.json @@ -1,9 +1,9 @@ { "cluster.pending_tasks": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cluster/pending_tasks", "paths": ["/_cluster/pending_tasks"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.put_settings.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.put_settings.json index 5fcf0310283..4681640f4b1 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.put_settings.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.put_settings.json @@ -1,9 +1,9 @@ { "cluster.put_settings": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html", + "stability": "stable", "methods": ["PUT"], "url": { - "path": "/_cluster/settings", "paths": ["/_cluster/settings"], "parts": {}, "params": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.remote_info.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.remote_info.json index 32378531544..4fdb89b8910 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.remote_info.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.remote_info.json @@ -1,9 +1,9 @@ { "cluster.remote_info": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_remote/info", "paths": ["/_remote/info"], "params": {} }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.reroute.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.reroute.json index 8bb85ca087a..c7d8ece64d8 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.reroute.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.reroute.json @@ -1,9 +1,9 @@ { "cluster.reroute": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/_cluster/reroute", "paths": ["/_cluster/reroute"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.state.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.state.json index fec3f450004..cd7f40cd860 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.state.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.state.json @@ -1,9 +1,9 @@ { "cluster.state": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html", + "stability" : "stable", "methods": ["GET"], "url": { - "path": "/_cluster/state", "paths": [ "/_cluster/state", "/_cluster/state/{metric}", @@ -57,6 +57,9 @@ } } }, - "body": null + "body": null, + "response": { + "treat_json_as_key_value" : true + } } } diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.stats.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.stats.json index 36400ed2f7c..192cf7dcdf5 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.stats.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.stats.json @@ -1,9 +1,9 @@ { "cluster.stats": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_cluster/stats", "paths": ["/_cluster/stats", "/_cluster/stats/nodes/{node_id}"], "parts": { "node_id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/count.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/count.json index d14f4ab784a..7165e219df9 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/count.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/count.json @@ -1,10 +1,17 @@ { "count": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html", + "stability": "stable", "methods": ["POST", "GET"], "url": { - "path": "/_count", - "paths": ["/_count", "/{index}/_count", "/{index}/{type}/_count"], + "paths": ["/_count", "/{index}/_count"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/_count", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "index": { "type" : "list", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/create.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/create.json index 6a21620423d..d0e2375d001 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/create.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/create.json @@ -1,10 +1,17 @@ { "create": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html", + "stability": "stable", "methods": ["PUT","POST"], "url": { - "path": "/{index}/_create/{id}", - "paths": ["/{index}/_create/{id}", "/{index}/{type}/{id}/_create"], + "paths": ["/{index}/_create/{id}"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/{id}/_create", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "id": { "type" : "string", @@ -26,10 +33,6 @@ "type" : "string", "description" : "Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" }, - "parent": { - "type" : "string", - "description" : "ID of the parent document" - }, "refresh": { "type" : "enum", "options": ["true", "false", "wait_for"], diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete.json index 4b698b371a1..27c7e62ddaa 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete.json @@ -1,10 +1,17 @@ { "delete": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html", + "stability": "stable", "methods": ["DELETE"], "url": { - "path": "/{index}/_doc/{id}", - "paths": ["/{index}/{type}/{id}", "/{index}/_doc/{id}"], + "paths": ["/{index}/_doc/{id}"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/{id}", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "id": { "type" : "string", @@ -26,10 +33,6 @@ "type" : "string", "description" : "Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" }, - "parent": { - "type" : "string", - "description" : "ID of parent document" - }, "refresh": { "type" : "enum", "options": ["true", "false", "wait_for"], diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query.json index dfdc0068082..b5a3a6876b6 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query.json @@ -1,10 +1,17 @@ { "delete_by_query": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/{index}/_delete_by_query", - "paths": ["/{index}/_delete_by_query", "/{index}/{type}/_delete_by_query"], + "paths": ["/{index}/_delete_by_query"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/_delete_by_query", + "description" : "Specifying types in urls has been deprecated" + } + ], "comment": "most things below this are just copied from search.json", "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query_rethrottle.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query_rethrottle.json index f49af01cfc3..1104af56023 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query_rethrottle.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query_rethrottle.json @@ -1,9 +1,9 @@ { "delete_by_query_rethrottle": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/_delete_by_query/{task_id}/_rethrottle", "paths": ["/_delete_by_query/{task_id}/_rethrottle"], "parts": { "task_id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_script.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_script.json index 83bb690cc04..d407aa0bfe6 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_script.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_script.json @@ -1,9 +1,9 @@ { "delete_script": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", + "stability": "stable", "methods": ["DELETE"], "url": { - "path": "/_scripts/{id}", "paths": [ "/_scripts/{id}" ], "parts": { "id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists.json index 1d3749a5d8c..35112389aa3 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists.json @@ -1,10 +1,17 @@ { "exists": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", + "stability": "stable", "methods": ["HEAD"], "url": { - "path": "/{index}/_doc/{id}", - "paths": ["/{index}/_doc/{id}", "/{index}/{type}/{id}"], + "paths": ["/{index}/_doc/{id}"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/{id}", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "id": { "type" : "string", @@ -26,10 +33,6 @@ "type": "list", "description" : "A comma-separated list of stored fields to return in the response" }, - "parent": { - "type" : "string", - "description" : "The ID of the parent document" - }, "preference": { "type" : "string", "description" : "Specify the node or shard the operation should be performed on (default: random)" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists_source.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists_source.json index a3edff1d111..7a34094100d 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists_source.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists_source.json @@ -1,10 +1,17 @@ { "exists_source": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", + "stability": "stable", "methods": ["HEAD"], "url": { - "path": "/{index}/_source/{id}", - "paths": ["/{index}/_source/{id}", "/{index}/{type}/{id}/_source"], + "paths": ["/{index}/_source/{id}"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/{id}/_source", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "id": { "type" : "string", @@ -23,10 +30,6 @@ } }, "params": { - "parent": { - "type" : "string", - "description" : "The ID of the parent document" - }, "preference": { "type" : "string", "description" : "Specify the node or shard the operation should be performed on (default: random)" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/explain.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/explain.json index 005cbadccb0..11f32801d4d 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/explain.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/explain.json @@ -1,10 +1,17 @@ { "explain": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { - "path": "/{index}/_explain/{id}", - "paths": ["/{index}/_explain/{id}", "/{index}/{type}/{id}/_explain"], + "paths": ["/{index}/_explain/{id}"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/{id}/_explain", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "id": { "type" : "string", @@ -48,10 +55,6 @@ "type" : "boolean", "description" : "Specify whether format-based query failures (such as providing text to a numeric field) should be ignored" }, - "parent": { - "type" : "string", - "description" : "The ID of the parent document" - }, "preference": { "type" : "string", "description" : "Specify the node or shard the operation should be performed on (default: random)" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_caps.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_caps.json index 3ba09ca314b..d4178561509 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_caps.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/field_caps.json @@ -1,9 +1,9 @@ { "field_caps": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { - "path": "/_field_caps", "paths": [ "/_field_caps", "/{index}/_field_caps" @@ -32,6 +32,11 @@ "options" : ["open","closed","none","all"], "default" : "open", "description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both." + }, + "include_unmapped": { + "type": "boolean", + "default": false, + "description": "Indicates whether unmapped fields should be included in the response." } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get.json index 0fd17b791b9..f02ca3e4a43 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get.json @@ -1,10 +1,17 @@ { "get": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/{index}/_doc/{id}", - "paths": ["/{index}/_doc/{id}", "/{index}/{type}/{id}"], + "paths": ["/{index}/_doc/{id}"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/{id}", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "id": { "type" : "string", @@ -26,10 +33,6 @@ "type": "list", "description" : "A comma-separated list of stored fields to return in the response" }, - "parent": { - "type" : "string", - "description" : "The ID of the parent document" - }, "preference": { "type" : "string", "description" : "Specify the node or shard the operation should be performed on (default: random)" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_script.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_script.json index 0b2d6c5a5b9..6beaf8ae85a 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_script.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_script.json @@ -1,9 +1,9 @@ { "get_script": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_scripts/{id}", "paths": [ "/_scripts/{id}" ], "parts": { "id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_source.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_source.json index cd737e32d6c..0c7414f8184 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_source.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/get_source.json @@ -1,10 +1,17 @@ { "get_source": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/{index}/_source/{id}", - "paths": ["/{index}/_source/{id}", "/{index}/{type}/{id}/_source"], + "paths": ["/{index}/_source/{id}"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/{id}/_source", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "id": { "type" : "string", @@ -23,10 +30,6 @@ } }, "params": { - "parent": { - "type" : "string", - "description" : "The ID of the parent document" - }, "preference": { "type" : "string", "description" : "Specify the node or shard the operation should be performed on (default: random)" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/index.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/index.json index dcba05f6a38..d85e0d70994 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/index.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/index.json @@ -1,10 +1,22 @@ { "index": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html", + "stability": "stable", "methods": ["POST", "PUT"], "url": { - "path": "/{index}/_doc", - "paths": ["/{index}/{type}", "/{index}/{type}/{id}", "/{index}/_doc/{id}", "/{index}/_doc"], + "paths": ["/{index}/_doc/{id}", "/{index}/_doc"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}", + "description" : "Specifying types in urls has been deprecated" + }, + { + "version" : "7.0.0", + "path" : "/{index}/{type}/{id}", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "id": { "type" : "string", @@ -31,10 +43,6 @@ "default" : "index", "description" : "Explicit operation type" }, - "parent": { - "type" : "string", - "description" : "ID of the parent document" - }, "refresh": { "type" : "enum", "options": ["true", "false", "wait_for"], diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.analyze.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.analyze.json index c340ccd2f37..be119620d6c 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.analyze.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.analyze.json @@ -1,9 +1,9 @@ { "indices.analyze": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { - "path": "/_analyze", "paths": ["/_analyze", "/{index}/_analyze"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.json index 7e62371dd67..9e591275927 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.clear_cache.json @@ -1,9 +1,9 @@ { "indices.clear_cache": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/_cache/clear", "paths": ["/_cache/clear", "/{index}/_cache/clear"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.close.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.close.json index 4eaa93030ee..187cce0d077 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.close.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.close.json @@ -1,9 +1,9 @@ { "indices.close": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/{index}/_close", "paths": ["/{index}/_close"], "parts": { "index": { @@ -34,6 +34,10 @@ "options" : ["open","closed","none","all"], "default" : "open", "description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both." + }, + "wait_for_active_shards": { + "type" : "string", + "description" : "Sets the number of active shards to wait for before the operation returns." } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.create.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.create.json index d4a16e576e1..dfe3236c9c0 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.create.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.create.json @@ -1,9 +1,9 @@ { "indices.create": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html", + "stability": "stable", "methods": ["PUT"], "url": { - "path": "/{index}", "paths": ["/{index}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete.json index c391242e9de..4c2b7eaaa2f 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete.json @@ -1,9 +1,9 @@ { "indices.delete": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html", + "stability": "stable", "methods": ["DELETE"], "url": { - "path": "/{index}", "paths": ["/{index}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete_alias.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete_alias.json index 30a32fbfef8..c6e4ec82954 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete_alias.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete_alias.json @@ -1,9 +1,9 @@ { "indices.delete_alias": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", + "stability": "stable", "methods": ["DELETE"], "url": { - "path": "/{index}/_alias/{name}", "paths": ["/{index}/_alias/{name}", "/{index}/_aliases/{name}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete_template.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete_template.json index b311c9bbda8..0b3758953b3 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete_template.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.delete_template.json @@ -1,9 +1,9 @@ { "indices.delete_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", + "stability": "stable", "methods": ["DELETE"], "url": { - "path": "/_template/{name}", "paths": ["/_template/{name}"], "parts": { "name": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists.json index 7f04f00b40d..b84f4d2cacb 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists.json @@ -1,9 +1,9 @@ { "indices.exists": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html", + "stability": "stable", "methods": [ "HEAD" ], "url": { - "path": "/{index}", "paths": [ "/{index}" ], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_alias.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_alias.json index aea20b2b634..d95c423b66d 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_alias.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_alias.json @@ -1,9 +1,9 @@ { "indices.exists_alias": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", + "stability": "stable", "methods": ["HEAD"], "url": { - "path": "/_alias/{name}", "paths": ["/_alias/{name}", "/{index}/_alias/{name}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_template.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_template.json index 3fb9d1e207e..8140c5748fb 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_template.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_template.json @@ -1,9 +1,9 @@ { "indices.exists_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", + "stability": "stable", "methods": ["HEAD"], "url": { - "path": "/_template/{name}", "paths": [ "/_template/{name}" ], "parts": { "name": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_type.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_type.json index d793199bc27..10b69b2647f 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_type.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.exists_type.json @@ -1,9 +1,13 @@ { "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", + "description" : "Types are being removed from elasticsearch and therefor this API is on the way out. Read more here: https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html" + }, "url": { - "path": "/{index}/_mapping/{type}", "paths": ["/{index}/_mapping/{type}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.flush.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.flush.json index 77d9e037163..7c6c9cb32cd 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.flush.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.flush.json @@ -1,9 +1,9 @@ { "indices.flush": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html", + "stability": "stable", "methods": ["POST", "GET"], "url": { - "path": "/_flush", "paths": ["/_flush", "/{index}/_flush"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.flush_synced.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.flush_synced.json index 08488eae864..1b9ab1bb5ef 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.flush_synced.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.flush_synced.json @@ -1,9 +1,9 @@ { "indices.flush_synced": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html", + "stability": "stable", "methods": ["POST", "GET"], "url": { - "path": "/_flush/synced", "paths": [ "/_flush/synced", "/{index}/_flush/synced" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.forcemerge.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.forcemerge.json index d87ce2a4451..c75bf0e47ef 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.forcemerge.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.forcemerge.json @@ -1,9 +1,9 @@ { "indices.forcemerge": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/_forcemerge", "paths": ["/_forcemerge", "/{index}/_forcemerge"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get.json index 76e6ed00feb..a0e947504b3 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get.json @@ -1,9 +1,9 @@ { "indices.get":{ "documentation":"http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html", + "stability": "stable", "methods":[ "GET" ], "url":{ - "path":"/{index}", "paths":[ "/{index}" ], "parts":{ "index":{ diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_alias.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_alias.json index b68d7c527fc..db819f446ad 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_alias.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_alias.json @@ -1,9 +1,9 @@ { "indices.get_alias": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_alias/", "paths": [ "/_alias", "/_alias/{name}", "/{index}/_alias/{name}", "/{index}/_alias"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_field_mapping.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_field_mapping.json index 3ce610153b5..83a199cbdc0 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_field_mapping.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_field_mapping.json @@ -1,10 +1,22 @@ { "indices.get_field_mapping": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_mapping/field/{fields}", - "paths": ["/_mapping/field/{fields}", "/{index}/_mapping/field/{fields}", "/_mapping/{type}/field/{fields}", "/{index}/_mapping/{type}/field/{fields}"], + "paths": ["/_mapping/field/{fields}", "/{index}/_mapping/field/{fields}"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/_mapping/{type}/field/{fields}", + "description" : "Specifying types in urls has been deprecated" + }, + { + "version" : "7.0.0", + "path" : "/{index}/_mapping/{type}/field/{fields}", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "index": { "type" : "list", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_mapping.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_mapping.json index d9016ec4024..ad55adc1893 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_mapping.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_mapping.json @@ -1,10 +1,22 @@ { "indices.get_mapping": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_mapping", - "paths": ["/_mapping", "/{index}/_mapping", "/_mapping/{type}", "/{index}/_mapping/{type}"], + "paths": ["/_mapping", "/{index}/_mapping"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/_mapping/{type}", + "description" : "Specifying types in urls has been deprecated" + }, + { + "version" : "7.0.0", + "path" : "/{index}/_mapping/{type}", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "index": { "type" : "list", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_settings.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_settings.json index ed22cc837d6..d86f2b0a3b8 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_settings.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_settings.json @@ -1,9 +1,9 @@ { "indices.get_settings": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_settings", "paths": ["/_settings", "/{index}/_settings", "/{index}/_settings/{name}", "/_settings/{name}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_template.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_template.json index e2aae3b7444..f81fc337dd4 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_template.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_template.json @@ -1,9 +1,9 @@ { "indices.get_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_template/{name}", "paths": [ "/_template", "/_template/{name}" diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_upgrade.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_upgrade.json index 3c114a450ee..4770fba4e9c 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_upgrade.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.get_upgrade.json @@ -1,9 +1,9 @@ { "indices.get_upgrade": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_upgrade", "paths": ["/_upgrade", "/{index}/_upgrade"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.open.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.open.json index 86c39988e18..36cc75e2649 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.open.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.open.json @@ -1,9 +1,9 @@ { "indices.open": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/{index}/_open", "paths": ["/{index}/_open"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_alias.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_alias.json index da53d5ac441..8cbcfcdd25e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_alias.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_alias.json @@ -1,9 +1,9 @@ { "indices.put_alias": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { - "path": "/{index}/_alias/{name}", "paths": ["/{index}/_alias/{name}", "/{index}/_aliases/{name}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_mapping.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_mapping.json index cc55ffccdd1..064c532917c 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_mapping.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_mapping.json @@ -1,10 +1,47 @@ { "indices.put_mapping": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { - "path": "/{index}/{type}/_mapping", - "paths": ["/{index}/{type}/_mapping", "/{index}/_mapping/{type}", "/_mapping/{type}", "/{index}/{type}/_mappings", "/{index}/_mappings/{type}", "/_mappings/{type}", "{index}/_mappings", "{index}/_mapping"], + "paths": ["{index}/_mapping"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/_mapping", + "description" : "Specifying types in urls has been deprecated" + }, + { + "version" : "7.0.0", + "path" : "/{index}/_mapping/{type}", + "description" : "Specifying types in urls has been deprecated" + }, + { + "version" : "7.0.0", + "path" : "/{index}/{type}/_mappings", + "description" : "Specifying types in urls has been deprecated" + }, + { + "version" : "7.0.0", + "path" : "/{index}/_mappings/{type}", + "description" : "Specifying types in urls has been deprecated" + }, + { + "version" : "7.0.0", + "path" : "/_mappings/{type}", + "description" : "Specifying types in urls has been deprecated" + }, + { + "version" : "7.0.0", + "path" : "{index}/_mappings", + "description" : "The plural mappings is accepted but only /_mapping is documented" + }, + { + "version" : "7.0.0", + "path" : "/_mapping/{type}", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "index": { "type" : "list", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_settings.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_settings.json index 3055cb8e32e..3ef98b8b0a5 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_settings.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_settings.json @@ -1,9 +1,9 @@ { "indices.put_settings": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html", + "stability": "stable", "methods": ["PUT"], "url": { - "path": "/_settings", "paths": ["/_settings", "/{index}/_settings"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_template.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_template.json index 65aa9506ff9..58235afa281 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_template.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.put_template.json @@ -1,9 +1,9 @@ { "indices.put_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { - "path": "/_template/{name}", "paths": ["/_template/{name}"], "parts": { "name": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.recovery.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.recovery.json index 80b7f1a0009..6c3b574d23b 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.recovery.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.recovery.json @@ -1,9 +1,9 @@ { "indices.recovery" : { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_recovery", "paths": ["/_recovery", "/{index}/_recovery"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.refresh.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.refresh.json index a32974d017f..157aae6c917 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.refresh.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.refresh.json @@ -1,9 +1,9 @@ { "indices.refresh": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html", + "stability": "stable", "methods": ["POST", "GET"], "url": { - "path": "/_refresh", "paths": ["/_refresh", "/{index}/_refresh"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.rollover.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.rollover.json index 7bf1513969f..3d5addef6b5 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.rollover.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.rollover.json @@ -1,9 +1,9 @@ { "indices.rollover": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/{alias}/_rollover", "paths": ["/{alias}/_rollover", "/{alias}/_rollover/{new_index}"], "parts": { "alias": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.segments.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.segments.json index 3ecf1b23aae..a39d492b5a4 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.segments.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.segments.json @@ -1,9 +1,9 @@ { "indices.segments": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_segments", "paths": ["/_segments", "/{index}/_segments"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.shard_stores.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.shard_stores.json index ecdaa75a3a9..ff64c40f667 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.shard_stores.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.shard_stores.json @@ -1,9 +1,9 @@ { "indices.shard_stores": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_shard_stores", "paths": ["/_shard_stores", "/{index}/_shard_stores"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.shrink.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.shrink.json index f92421b79ae..8ffbf640748 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.shrink.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.shrink.json @@ -1,9 +1,9 @@ { "indices.shrink": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { - "path": "/{index}/_shrink/{target}", "paths": ["/{index}/_shrink/{target}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.split.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.split.json index 2c14fced28c..3ac3c909c88 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.split.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.split.json @@ -1,9 +1,9 @@ { "indices.split": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { - "path": "/{index}/_split/{target}", "paths": ["/{index}/_split/{target}"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.stats.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.stats.json index 223e5a14ff6..3be4d938724 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.stats.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.stats.json @@ -1,9 +1,9 @@ { "indices.stats": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_stats", "paths": [ "/_stats", "/_stats/{metric}", @@ -52,6 +52,22 @@ "type": "boolean", "description": "Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested)", "default": false + }, + "include_unloaded_segments": { + "type": "boolean", + "description": "If set to true segment stats will include stats for segments that are not currently loaded into memory", + "default": false + }, + "expand_wildcards": { + "type" : "enum", + "options" : ["open","closed","none","all"], + "default" : "open", + "description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both." + }, + "forbid_closed_indices": { + "type": "boolean", + "description": "If set to false stats will also collected from closed indices if explicitly specified or if expand_wildcards expands to closed indices", + "default": true } } }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.update_aliases.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.update_aliases.json index 30c369e410a..8c75adfe68b 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.update_aliases.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.update_aliases.json @@ -1,9 +1,9 @@ { "indices.update_aliases": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/_aliases", "paths": ["/_aliases"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.upgrade.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.upgrade.json index 1e2413ee723..ce408a4e1e5 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.upgrade.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.upgrade.json @@ -1,9 +1,9 @@ { "indices.upgrade": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/_upgrade", "paths": ["/_upgrade", "/{index}/_upgrade"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.validate_query.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.validate_query.json index 2f9aac05438..a4cf1d0e387 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.validate_query.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/indices.validate_query.json @@ -1,10 +1,17 @@ { "indices.validate_query": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { - "path": "/_validate/query", - "paths": ["/_validate/query", "/{index}/_validate/query", "/{index}/{type}/_validate/query"], + "paths": ["/_validate/query", "/{index}/_validate/query"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/_validate/query", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "index": { "type" : "list", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/info.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/info.json index 63754eb7f7c..c1fec52fc8c 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/info.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/info.json @@ -1,9 +1,9 @@ { "info": { "documentation": "http://www.elastic.co/guide/", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/", "paths": ["/"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.delete_pipeline.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.delete_pipeline.json index c3b51de8620..f1b31689418 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.delete_pipeline.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.delete_pipeline.json @@ -1,9 +1,9 @@ { "ingest.delete_pipeline": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html", + "stability": "stable", "methods": [ "DELETE" ], "url": { - "path": "/_ingest/pipeline/{id}", "paths": [ "/_ingest/pipeline/{id}" ], "parts": { "id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.get_pipeline.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.get_pipeline.json index 16a07e072b7..e91226c1859 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.get_pipeline.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.get_pipeline.json @@ -1,9 +1,9 @@ { "ingest.get_pipeline": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html", + "stability": "stable", "methods": [ "GET" ], "url": { - "path": "/_ingest/pipeline/{id}", "paths": [ "/_ingest/pipeline", "/_ingest/pipeline/{id}" ], "parts": { "id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.processor_grok.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.processor_grok.json index bf40be853e2..cb98ef30df9 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.processor_grok.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.processor_grok.json @@ -1,9 +1,9 @@ { "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": { - "path": "/_ingest/processor/grok", "paths": ["/_ingest/processor/grok"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.put_pipeline.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.put_pipeline.json index 1ea77901d8d..166b2b9d419 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.put_pipeline.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.put_pipeline.json @@ -1,9 +1,9 @@ { "ingest.put_pipeline": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html", + "stability": "stable", "methods": [ "PUT" ], "url": { - "path": "/_ingest/pipeline/{id}", "paths": [ "/_ingest/pipeline/{id}" ], "parts": { "id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.simulate.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.simulate.json index c16008ad6b6..5010c02424e 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.simulate.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ingest.simulate.json @@ -1,9 +1,9 @@ { "ingest.simulate": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html", + "stability": "stable", "methods": [ "GET", "POST" ], "url": { - "path": "/_ingest/pipeline/_simulate", "paths": [ "/_ingest/pipeline/_simulate", "/_ingest/pipeline/{id}/_simulate" ], "parts": { "id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/mget.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/mget.json index 62fbb59a4e4..bd8e258c2e2 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/mget.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/mget.json @@ -1,10 +1,17 @@ { "mget": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { - "path": "/_mget", - "paths": ["/_mget", "/{index}/_mget", "/{index}/{type}/_mget"], + "paths": ["/_mget", "/{index}/_mget"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/_mget", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "index": { "type" : "string", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json index 398dcbd2951..2e68bf5f694 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch.json @@ -1,10 +1,17 @@ { "msearch": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { - "path": "/_msearch", - "paths": ["/_msearch", "/{index}/_msearch", "/{index}/{type}/_msearch"], + "paths": ["/_msearch", "/{index}/_msearch"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/_msearch", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "index": { "type" : "list", @@ -36,8 +43,8 @@ }, "max_concurrent_shard_requests" : { "type" : "number", - "description" : "The number of concurrent shard requests each sub search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests", - "default" : "The default grows with the number of nodes in the cluster but is at most 256." + "description" : "The number of concurrent shard requests each sub search executes concurrently per node. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests", + "default" : 5 }, "rest_total_hits_as_int" : { "type" : "boolean", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch_template.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch_template.json index e89f96e0696..5bf76ba4989 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch_template.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/msearch_template.json @@ -1,10 +1,17 @@ { "msearch_template": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { - "path": "/_msearch/template", - "paths": ["/_msearch/template", "/{index}/_msearch/template", "/{index}/{type}/_msearch/template"], + "paths": ["/_msearch/template", "/{index}/_msearch/template"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/_msearch/template", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts": { "index": { "type" : "list", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/mtermvectors.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/mtermvectors.json index 58978b7d190..29eb4e0aacc 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/mtermvectors.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/mtermvectors.json @@ -1,10 +1,17 @@ { "mtermvectors" : { "documentation" : "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html", + "stability": "stable", "methods" : ["GET", "POST"], "url" : { - "path" : "/_mtermvectors", - "paths" : ["/_mtermvectors", "/{index}/_mtermvectors", "/{index}/{type}/_mtermvectors"], + "paths" : ["/_mtermvectors", "/{index}/_mtermvectors"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/{index}/{type}/_mtermvectors", + "description" : "Specifying types in urls has been deprecated" + } + ], "parts" : { "index" : { "type" : "string", @@ -66,11 +73,6 @@ "description" : "Specific routing value. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".", "required" : false }, - "parent" : { - "type" : "string", - "description" : "Parent id of documents. Applies to all returned documents unless otherwise specified in body \"params\" or \"docs\".", - "required" : false - }, "realtime": { "type": "boolean", "description": "Specifies if requests are real-time as opposed to near-real-time (default: true).", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.hot_threads.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.hot_threads.json index 854cde1a9e7..b94fbaaaedf 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.hot_threads.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.hot_threads.json @@ -1,10 +1,42 @@ { "nodes.hot_threads": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_nodes/hot_threads", - "paths": ["/_cluster/nodes/hotthreads", "/_cluster/nodes/hot_threads", "/_cluster/nodes/{node_id}/hotthreads", "/_cluster/nodes/{node_id}/hot_threads", "/_nodes/hotthreads", "/_nodes/hot_threads", "/_nodes/{node_id}/hotthreads", "/_nodes/{node_id}/hot_threads"], + "paths": ["/_nodes/hot_threads", "/_nodes/{node_id}/hot_threads"], + "deprecated_paths" : [ + { + "version" : "7.0.0", + "path" : "/_cluster/nodes/hotthreads", + "description" : "The hot threads API accepts `hotthreads` but only `hot_threads` is documented" + }, + { + "version" : "7.0.0", + "path" : "/_cluster/nodes/{node_id}/hotthreads", + "description" : "The hot threads API accepts `hotthreads` but only `hot_threads` is documented" + }, + { + "version" : "7.0.0", + "path" : "/_nodes/hotthreads", + "description" : "The hot threads API accepts `hotthreads` but only `hot_threads` is documented" + }, + { + "version" : "7.0.0", + "path" : "/_nodes/{node_id}/hotthreads", + "description" : "The hot threads API accepts `hotthreads` but only `hot_threads` is documented" + }, + { + "version" : "7.0.0", + "path" : "/_cluster/nodes/hot_threads", + "description" : "The hot accepts /_cluster/nodes as prefix for backwards compatibility reasons" + }, + { + "version" : "7.0.0", + "path" :"/_cluster/nodes/{node_id}/hot_threads", + "description" : "The hot accepts /_cluster/nodes as prefix for backwards compatibility reasons" + } + ], "parts": { "node_id": { "type" : "list", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.info.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.info.json index c86d35dc1a9..ca6637d81dc 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.info.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.info.json @@ -1,9 +1,9 @@ { "nodes.info": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_nodes", "paths": ["/_nodes", "/_nodes/{node_id}", "/_nodes/{metric}", "/_nodes/{node_id}/{metric}"], "parts": { "node_id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.reload_secure_settings.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.reload_secure_settings.json index 0a566df35bb..e40e66cb266 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.reload_secure_settings.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.reload_secure_settings.json @@ -1,9 +1,9 @@ { "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": { - "path": "/_nodes/reload_secure_settings", "paths": ["/_nodes/reload_secure_settings", "/_nodes/{node_id}/reload_secure_settings"], "parts": { "node_id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.stats.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.stats.json index 7b426d03918..50af7b6d478 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.stats.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.stats.json @@ -1,9 +1,9 @@ { "nodes.stats": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_nodes/stats", "paths": [ "/_nodes/stats", "/_nodes/{node_id}/stats", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json index 97c3f201f6c..6b70af58c08 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/nodes.usage.json @@ -1,9 +1,9 @@ { "nodes.usage": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html", + "stability": "stable", "methods": ["GET"], "url": { - "path": "/_nodes/usage", "paths": [ "/_nodes/usage", "/_nodes/{node_id}/usage", diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ping.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ping.json index 41310bb30d4..d49dd787216 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ping.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/ping.json @@ -1,9 +1,9 @@ { "ping": { "documentation": "http://www.elastic.co/guide/", + "stability": "stable", "methods": ["HEAD"], "url": { - "path": "/", "paths": ["/"], "parts": { }, diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_script.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_script.json index 34bd4f63c28..5de2bf9bd30 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_script.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/put_script.json @@ -1,9 +1,9 @@ { "put_script": { "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", + "stability": "stable", "methods": ["PUT", "POST"], "url": { - "path": "/_scripts/{id}", "paths": [ "/_scripts/{id}", "/_scripts/{id}/{context}" ], "parts": { "id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/rank_eval.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/rank_eval.json index 5c9cebf7411..8bb2212d7a6 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/rank_eval.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/rank_eval.json @@ -1,9 +1,9 @@ { "rank_eval": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html", + "stability" : "experimental", "methods": ["GET", "POST"], "url": { - "path": "/_rank_eval", "paths": ["/_rank_eval", "/{index}/_rank_eval"], "parts": { "index": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex.json index e85eadb5bc4..6de28e378a3 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex.json @@ -1,9 +1,9 @@ { "reindex": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/_reindex", "paths": ["/_reindex"], "parts": {}, "params": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex_rethrottle.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex_rethrottle.json index 2763eb8983f..a6957c5f7c7 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex_rethrottle.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/reindex_rethrottle.json @@ -1,9 +1,9 @@ { "reindex_rethrottle": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html", + "stability": "stable", "methods": ["POST"], "url": { - "path": "/_reindex/{task_id}/_rethrottle", "paths": ["/_reindex/{task_id}/_rethrottle"], "parts": { "task_id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/render_search_template.json b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/render_search_template.json index 8f27c12b819..fa3af422fee 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/render_search_template.json +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/render_search_template.json @@ -1,9 +1,9 @@ { "render_search_template": { "documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html", + "stability": "stable", "methods": ["GET", "POST"], "url": { - "path": "/_render/template", "paths": [ "/_render/template", "/_render/template/{id}" ], "parts": { "id": { diff --git a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/root.html b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/root.html index 1e85abeac0e..c268e3ef0e3 100644 --- a/src/CodeGeneration/ApiGenerator/RestSpecification/Core/root.html +++ b/src/CodeGeneration/ApiGenerator/RestSpecification/Core/root.html @@ -18,9 +18,9 @@ - - - + + + @@ -28,7 +28,7 @@ - elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/api at v7.1.1 · elastic/elasticsearch · GitHub + elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/api at v7.2.0 · elastic/elasticsearch · GitHub @@ -41,7 +41,7 @@ - + @@ -52,7 +52,7 @@ - + @@ -70,23 +70,23 @@ - + - + - + - + - + - + @@ -256,7 +256,7 @@

Conne aria-autocomplete="list" aria-controls="jump-to-results" aria-label="Search" - data-jump-to-suggestions-path="/_graphql/GetSuggestedNavigationDestinations#csrf-token=c9KNrqVAFfmXdG3tCGRvcGBo/3FlNX5fXq6O2+dQ8X1ZtFO5zH2XrQ4ednIkE/pMIao9M6IyqyUjXGUAvP1VRA==" + data-jump-to-suggestions-path="/_graphql/GetSuggestedNavigationDestinations#csrf-token=kUE0wNgUlzQ5OR4HU66JLLyL2d1bezxBZy4HVLTFsNW8bJztvEHiyVeJkZd1z6MRE/bwRsO/Vkza5PI3XdiH/w==" spellcheck="false" autocomplete="off" > @@ -381,15 +381,15 @@

Conne - Sign in Sign up @@ -434,36 +434,36 @@

Conne
  • - + Watch
  • - + Star
  • - + Fork
  • @@ -486,7 +486,7 @@

    data-pjax="#js-repo-pjax-container"> -

    @@ -504,7 +504,7 @@

    @@ -529,7 +529,7 @@

    -
    +
    @@ -542,10 +542,10 @@

    title="Switch branches or tags"> Tag: - v7.1.1 + v7.2.0 - + @@ -560,19 +560,19 @@

    - + Find file - + History

    - +
    - +
    Fetching latest commit… @@ -583,8 +583,8 @@

    - - Permalink + + Permalink @@ -597,7 +597,7 @@

    - + @@ -615,7 +615,7 @@

    + + + + + +
    ....
    - _common.json + _common.json @@ -631,7 +631,7 @@

    - bulk.json + bulk.json @@ -647,7 +647,7 @@

    - cat.aliases.json + cat.aliases.json @@ -663,7 +663,7 @@

    - cat.allocation.json + cat.allocation.json @@ -679,7 +679,7 @@

    - cat.count.json + cat.count.json @@ -695,7 +695,7 @@

    - cat.fielddata.json + cat.fielddata.json @@ -711,7 +711,7 @@

    - cat.health.json + cat.health.json @@ -727,7 +727,7 @@

    - cat.help.json + cat.help.json @@ -743,7 +743,7 @@

    - cat.indices.json + cat.indices.json @@ -759,7 +759,7 @@

    - cat.master.json + cat.master.json @@ -775,7 +775,7 @@

    - cat.nodeattrs.json + cat.nodeattrs.json @@ -791,7 +791,7 @@

    - cat.nodes.json + cat.nodes.json @@ -807,7 +807,7 @@

    - cat.pending_tasks.json + cat.pending_tasks.json @@ -823,7 +823,7 @@

    - cat.plugins.json + cat.plugins.json @@ -839,7 +839,7 @@

    - cat.recovery.json + cat.recovery.json @@ -855,7 +855,7 @@

    - cat.repositories.json + cat.repositories.json @@ -871,7 +871,7 @@

    - cat.segments.json + cat.segments.json @@ -887,7 +887,7 @@

    - cat.shards.json + cat.shards.json @@ -903,7 +903,7 @@

    - cat.snapshots.json + cat.snapshots.json @@ -919,7 +919,7 @@

    - cat.tasks.json + cat.tasks.json @@ -935,7 +935,7 @@

    - cat.templates.json + cat.templates.json @@ -951,7 +951,7 @@

    - cat.thread_pool.json + cat.thread_pool.json @@ -967,7 +967,7 @@

    - clear_scroll.json + clear_scroll.json @@ -983,7 +983,7 @@

    - cluster.allocation_explain.json + cluster.allocation_explain.json @@ -999,7 +999,7 @@

    - cluster.get_settings.json + cluster.get_settings.json @@ -1015,7 +1015,7 @@

    - cluster.health.json + cluster.health.json @@ -1031,7 +1031,7 @@

    - cluster.pending_tasks.json + cluster.pending_tasks.json @@ -1047,7 +1047,7 @@

    - cluster.put_settings.json + cluster.put_settings.json @@ -1063,7 +1063,7 @@

    - cluster.remote_info.json + cluster.remote_info.json @@ -1079,7 +1079,7 @@

    - cluster.reroute.json + cluster.reroute.json @@ -1095,7 +1095,7 @@

    - cluster.state.json + cluster.state.json @@ -1111,7 +1111,7 @@

    - cluster.stats.json + cluster.stats.json @@ -1127,7 +1127,7 @@

    - count.json + count.json @@ -1143,7 +1143,7 @@

    - create.json + create.json @@ -1159,7 +1159,7 @@

    - delete.json + delete.json @@ -1175,7 +1175,7 @@

    - delete_by_query.json + delete_by_query.json @@ -1191,7 +1191,7 @@

    - delete_by_query_rethrottle.json + delete_by_query_rethrottle.json @@ -1207,7 +1207,7 @@

    - delete_script.json + delete_script.json @@ -1223,7 +1223,7 @@

    - exists.json + exists.json @@ -1239,7 +1239,7 @@

    - exists_source.json + exists_source.json @@ -1255,7 +1255,7 @@

    - explain.json + explain.json @@ -1271,7 +1271,7 @@

    - field_caps.json + field_caps.json @@ -1287,7 +1287,7 @@

    - get.json + get.json @@ -1303,7 +1303,7 @@

    - get_script.json + get_script.json @@ -1319,7 +1319,7 @@

    - get_source.json + get_source.json @@ -1335,7 +1335,7 @@

    - index.json + index.json @@ -1351,7 +1351,7 @@

    - indices.analyze.json + indices.analyze.json @@ -1367,7 +1367,7 @@

    - indices.clear_cache.json + indices.clear_cache.json @@ -1383,7 +1383,7 @@

    - indices.close.json + indices.close.json @@ -1399,7 +1399,7 @@

    - indices.create.json + indices.create.json @@ -1415,7 +1415,7 @@

    - indices.delete.json + indices.delete.json @@ -1431,7 +1431,7 @@

    - indices.delete_alias.json + indices.delete_alias.json @@ -1447,7 +1447,7 @@

    - indices.delete_template.json + indices.delete_template.json @@ -1463,7 +1463,7 @@

    - indices.exists.json + indices.exists.json @@ -1479,7 +1479,7 @@

    - indices.exists_alias.json + indices.exists_alias.json @@ -1495,7 +1495,7 @@

    - indices.exists_template.json + indices.exists_template.json @@ -1511,7 +1511,7 @@

    - indices.exists_type.json + indices.exists_type.json @@ -1527,7 +1527,7 @@

    - indices.flush.json + indices.flush.json @@ -1543,7 +1543,7 @@

    - indices.flush_synced.json + indices.flush_synced.json @@ -1559,7 +1559,7 @@

    - indices.forcemerge.json + indices.forcemerge.json @@ -1575,7 +1575,7 @@

    - indices.get.json + indices.get.json @@ -1591,7 +1591,7 @@

    - indices.get_alias.json + indices.get_alias.json @@ -1607,7 +1607,7 @@

    - indices.get_field_mapping.json + indices.get_field_mapping.json @@ -1623,7 +1623,7 @@

    - indices.get_mapping.json + indices.get_mapping.json @@ -1639,7 +1639,7 @@

    - indices.get_settings.json + indices.get_settings.json @@ -1655,7 +1655,7 @@

    - indices.get_template.json + indices.get_template.json @@ -1671,7 +1671,7 @@

    - indices.get_upgrade.json + indices.get_upgrade.json @@ -1687,7 +1687,7 @@

    - indices.open.json + indices.open.json @@ -1703,7 +1703,7 @@

    - indices.put_alias.json + indices.put_alias.json @@ -1719,7 +1719,7 @@

    - indices.put_mapping.json + indices.put_mapping.json @@ -1735,7 +1735,7 @@

    - indices.put_settings.json + indices.put_settings.json @@ -1751,7 +1751,7 @@

    - indices.put_template.json + indices.put_template.json @@ -1767,7 +1767,7 @@

    - indices.recovery.json + indices.recovery.json @@ -1783,7 +1783,7 @@

    - indices.refresh.json + indices.refresh.json @@ -1799,7 +1799,7 @@

    - indices.rollover.json + indices.rollover.json @@ -1815,7 +1815,7 @@

    - indices.segments.json + indices.segments.json @@ -1831,7 +1831,7 @@

    - indices.shard_stores.json + indices.shard_stores.json @@ -1847,7 +1847,7 @@

    - indices.shrink.json + indices.shrink.json @@ -1863,7 +1863,7 @@

    - indices.split.json + indices.split.json @@ -1879,7 +1879,7 @@

    - indices.stats.json + indices.stats.json @@ -1895,7 +1895,7 @@

    - indices.update_aliases.json + indices.update_aliases.json @@ -1911,7 +1911,7 @@

    - indices.upgrade.json + indices.upgrade.json @@ -1927,7 +1927,7 @@

    - indices.validate_query.json + indices.validate_query.json @@ -1943,7 +1943,7 @@

    - info.json + info.json @@ -1959,7 +1959,7 @@

    - ingest.delete_pipeline.json + ingest.delete_pipeline.json @@ -1975,7 +1975,7 @@

    - ingest.get_pipeline.json + ingest.get_pipeline.json @@ -1991,7 +1991,7 @@

    - ingest.processor_grok.json + ingest.processor_grok.json @@ -2007,7 +2007,7 @@

    - ingest.put_pipeline.json + ingest.put_pipeline.json @@ -2023,7 +2023,7 @@

    - ingest.simulate.json + ingest.simulate.json @@ -2039,7 +2039,7 @@

    - mget.json + mget.json @@ -2055,7 +2055,7 @@

    - msearch.json + msearch.json @@ -2071,7 +2071,7 @@

    - msearch_template.json + msearch_template.json @@ -2087,7 +2087,7 @@

    - mtermvectors.json + mtermvectors.json @@ -2103,7 +2103,7 @@

    - nodes.hot_threads.json + nodes.hot_threads.json @@ -2119,7 +2119,7 @@

    - nodes.info.json + nodes.info.json @@ -2135,7 +2135,7 @@

    - nodes.reload_secure_settings.json + nodes.reload_secure_settings.json @@ -2151,7 +2151,7 @@

    - nodes.stats.json + nodes.stats.json @@ -2167,7 +2167,7 @@

    - nodes.usage.json + nodes.usage.json @@ -2183,7 +2183,7 @@

    - ping.json + ping.json @@ -2199,7 +2199,7 @@

    - put_script.json + put_script.json @@ -2215,7 +2215,7 @@

    - rank_eval.json + rank_eval.json @@ -2231,7 +2231,7 @@

    - reindex.json + reindex.json @@ -2247,7 +2247,7 @@

    - reindex_rethrottle.json + reindex_rethrottle.json @@ -2263,7 +2263,7 @@

    - render_search_template.json + render_search_template.json @@ -2279,7 +2279,7 @@

    - scripts_painless_execute.json + scripts_painless_context.json @@ -2295,7 +2295,7 @@

    - scroll.json + scripts_painless_execute.json @@ -2311,7 +2311,7 @@

    - search.json + scroll.json @@ -2327,7 +2327,7 @@

    - search_shards.json + search.json @@ -2343,7 +2343,7 @@

    - search_template.json + search_shards.json @@ -2359,7 +2359,7 @@

    - snapshot.create.json + search_template.json @@ -2375,7 +2375,7 @@

    - snapshot.create_repository.json + snapshot.create.json @@ -2391,7 +2391,7 @@

    - snapshot.delete.json + snapshot.create_repository.json @@ -2407,7 +2407,7 @@

    - snapshot.delete_repository.json + snapshot.delete.json @@ -2423,7 +2423,7 @@

    - snapshot.get.json + snapshot.delete_repository.json @@ -2439,7 +2439,7 @@

    - snapshot.get_repository.json + snapshot.get.json @@ -2455,7 +2455,7 @@

    - snapshot.restore.json + snapshot.get_repository.json @@ -2471,7 +2471,7 @@

    - snapshot.status.json + snapshot.restore.json @@ -2487,7 +2487,7 @@

    - snapshot.verify_repository.json + snapshot.status.json @@ -2503,7 +2503,7 @@

    - tasks.cancel.json + snapshot.verify_repository.json @@ -2519,7 +2519,7 @@

    - tasks.get.json + tasks.cancel.json @@ -2535,7 +2535,7 @@

    - tasks.list.json + tasks.get.json @@ -2551,7 +2551,7 @@

    - termvectors.json + tasks.list.json @@ -2567,7 +2567,7 @@

    - update.json + termvectors.json @@ -2583,7 +2583,7 @@

    - update_by_query.json + update.json @@ -2599,7 +2599,23 @@

    - update_by_query_rethrottle.json + update_by_query.json + + + + + +
    + + + + update_by_query_rethrottle.json @@ -2634,7 +2650,7 @@

    -
    +
    @@ -542,10 +542,10 @@

    title="Switch branches or tags"> Tag: - v7.1.1 + v7.2.0 - + @@ -560,84 +560,31 @@

    - + Find file - + History

    - +
    - -
    - -
    -
    - - @nik9000 -
    -
    - -
    - - nik9000 - - - - - - Fix some documentation urls in rest-api-spec (#40618) (#41146) - - - - -
    Fixes some documentation urls in the rest-api-spec. Some of these URLs
    -pointed to 404s and a few others pointed to deprecated documentation
    -when we have better documentation now. I'm not consistent about `master`
    -vs `current` because we're not consistent in other places and I think we
    -should solve all of those at once with something a little more
    -automatic.
    -
    -
    - Latest commit - - 0bb1bde - - Apr 13, 2019 -
    + +
    + + Fetching latest commit…
    +
    + Cannot retrieve the latest commit at this time. +
    +
    - -
    - Permalink + + Permalink @@ -650,7 +597,7 @@

    - + @@ -668,23 +615,14 @@

    @@ -693,27 +631,14 @@

    @@ -722,47 +647,14 @@

    @@ -771,21 +663,14 @@

    @@ -794,35 +679,14 @@

    @@ -831,23 +695,14 @@

    @@ -856,23 +711,14 @@

    @@ -881,23 +727,14 @@

    @@ -906,19 +743,14 @@

    @@ -927,23 +759,14 @@

    @@ -952,27 +775,14 @@

    @@ -981,87 +791,14 @@

    @@ -1070,15 +807,14 @@

    @@ -1087,27 +823,14 @@

    @@ -1116,15 +839,14 @@

    @@ -1133,15 +855,14 @@

    @@ -1150,15 +871,14 @@

    @@ -1167,15 +887,14 @@

    @@ -1184,23 +903,14 @@

    @@ -1209,15 +919,14 @@

    @@ -1226,15 +935,14 @@

    @@ -1243,15 +951,14 @@

    @@ -1260,31 +967,14 @@

    @@ -1293,31 +983,14 @@

    @@ -1326,36 +999,14 @@

    @@ -1364,36 +1015,14 @@

    @@ -1402,36 +1031,14 @@

    @@ -1440,36 +1047,14 @@

    @@ -1478,36 +1063,14 @@

    @@ -1516,36 +1079,14 @@

    @@ -1554,36 +1095,14 @@

    @@ -1592,36 +1111,14 @@

    @@ -1630,21 +1127,14 @@

    @@ -1653,25 +1143,14 @@

    @@ -1680,25 +1159,14 @@

    @@ -1707,25 +1175,14 @@

    @@ -1734,25 +1191,14 @@

    @@ -1761,25 +1207,14 @@

    @@ -1788,25 +1223,14 @@

    @@ -1815,25 +1239,14 @@

    @@ -1842,25 +1255,14 @@

    @@ -1869,25 +1271,14 @@

    @@ -1896,36 +1287,14 @@

    @@ -1934,25 +1303,14 @@

    @@ -1961,25 +1319,14 @@

    @@ -1988,25 +1335,14 @@

    @@ -2015,25 +1351,14 @@

    @@ -2042,15 +1367,14 @@

    @@ -2059,25 +1383,14 @@

    @@ -2086,25 +1399,14 @@

    @@ -2113,25 +1415,14 @@

    @@ -2140,25 +1431,14 @@

    @@ -2167,25 +1447,14 @@

    @@ -2194,25 +1463,14 @@

    @@ -2221,25 +1479,14 @@

    @@ -2248,25 +1495,14 @@

    @@ -2275,25 +1511,14 @@

    @@ -2302,25 +1527,14 @@

    @@ -2329,25 +1543,14 @@

    @@ -2356,25 +1559,14 @@

    @@ -2383,25 +1575,14 @@

    @@ -2410,25 +1591,14 @@

    @@ -2437,25 +1607,14 @@

    @@ -2464,25 +1623,14 @@

    @@ -2491,25 +1639,14 @@

    @@ -2518,25 +1655,14 @@

    @@ -2545,25 +1671,14 @@

    @@ -2572,25 +1687,14 @@

    @@ -2599,25 +1703,14 @@

    @@ -2626,43 +1719,14 @@

    @@ -2671,25 +1735,14 @@

    @@ -2698,25 +1751,14 @@

    @@ -2725,25 +1767,14 @@

    @@ -2752,25 +1783,14 @@

    @@ -2779,25 +1799,14 @@

    @@ -2806,25 +1815,14 @@

    @@ -2833,25 +1831,14 @@

    @@ -2860,25 +1847,14 @@

    @@ -2887,36 +1863,14 @@

    @@ -2925,87 +1879,14 @@

    @@ -3014,87 +1895,14 @@

    @@ -3103,87 +1911,14 @@

    @@ -3192,87 +1927,14 @@

    @@ -3281,87 +1943,14 @@

    @@ -3370,27 +1959,14 @@

    @@ -3399,87 +1975,14 @@

    @@ -3488,87 +1991,14 @@

    @@ -3577,29 +2007,14 @@

    @@ -3608,29 +2023,14 @@

    @@ -3639,29 +2039,14 @@

    @@ -3670,29 +2055,14 @@

    @@ -3701,105 +2071,14 @@

    @@ -3808,29 +2087,14 @@

    @@ -3839,29 +2103,14 @@

    @@ -3870,29 +2119,14 @@

    @@ -3901,29 +2135,14 @@

    @@ -3932,45 +2151,14 @@

    @@ -3979,45 +2167,14 @@

    @@ -4026,105 +2183,14 @@

    @@ -4133,45 +2199,14 @@

    @@ -4180,29 +2215,14 @@

    @@ -4211,29 +2231,14 @@

    @@ -4242,29 +2247,14 @@

    @@ -4273,29 +2263,14 @@

    @@ -4304,36 +2279,14 @@

    @@ -4342,29 +2295,14 @@

    @@ -4373,105 +2311,14 @@

    @@ -4480,29 +2327,14 @@

    @@ -4511,29 +2343,14 @@

    @@ -4542,29 +2359,14 @@

    @@ -4573,29 +2375,14 @@

    @@ -4604,29 +2391,14 @@

    @@ -4635,87 +2407,14 @@

    @@ -4724,87 +2423,14 @@

    @@ -4813,87 +2439,14 @@

    @@ -4902,29 +2455,14 @@

    @@ -4933,87 +2471,14 @@

    @@ -5022,87 +2487,14 @@

    @@ -5111,87 +2503,14 @@

    @@ -5200,87 +2519,14 @@

    @@ -5289,87 +2535,14 @@

    @@ -5378,87 +2551,14 @@

    @@ -5467,87 +2567,14 @@

    @@ -5556,87 +2583,14 @@

    @@ -5645,45 +2599,14 @@

    @@ -5692,87 +2615,14 @@

    @@ -5781,15 +2631,14 @@

    @@ -5798,21 +2647,132 @@

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ....
    - ccr.delete_auto_follow_pattern.json + ccr.delete_auto_follow_pattern.json - Fix CCR API specification (#34963) - Oct 29, 2018 +
    - ccr.follow.json + ccr.follow.json - Use `CcrRepository` to init follower index (#35719) - Jan 29, 2019 +
    - ccr.follow_info.json + ccr.follow_info.json - Add ccr follow info api (#37408) - Jan 18, 2019 +
    - ccr.follow_stats.json + ccr.follow_stats.json - parts documented as optional are actually required (#39122) (#39642) - Mar 4, 2019 +
    - ccr.forget_follower.json + ccr.forget_follower.json - Introduce forget follower API (#39718) - Mar 7, 2019 +
    - ccr.get_auto_follow_pattern.json + ccr.get_auto_follow_pattern.json - Fix CCR API specification (#34963) - Oct 29, 2018 +
    - ccr.pause_follow.json + ccr.pause_follow.json - Fix CCR API specification (#34963) - Oct 29, 2018 +
    - ccr.put_auto_follow_pattern.json + ccr.put_auto_follow_pattern.json - Fix CCR API specification (#34963) - Oct 29, 2018 +
    - ccr.resume_follow.json + ccr.resume_follow.json - [CCR] Resume follow Api should not require a request body (#37217) - Jan 10, 2019 +
    - ccr.stats.json + ccr.stats.json - Fix CCR API specification (#34963) - Oct 29, 2018 +
    - ccr.unfollow.json + ccr.unfollow.json - [CCR] Add unfollow API (#34132) - Sep 30, 2018 +
    - graph.explore.json + data_frame.delete_data_frame_transform.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - ilm.delete_lifecycle.json + data_frame.get_data_frame_transform.json - [ILM] fix rest-api-spec doc links (#35478) - Nov 26, 2018 +
    - ilm.explain_lifecycle.json + data_frame.get_data_frame_transform_stats.json - ilm.explain_lifecycle documents human again (#39113) (#39649) - Mar 4, 2019 +
    - ilm.get_lifecycle.json + data_frame.preview_data_frame_transform.json - [ILM] fix rest-api-spec doc links (#35478) - Nov 26, 2018 +
    - ilm.get_status.json + data_frame.put_data_frame_transform.json - [ILM] fix rest-api-spec doc links (#35478) - Nov 26, 2018 +
    - ilm.move_to_step.json + data_frame.start_data_frame_transform.json - update move-to-step spec with proper docs and extra warning to clients ( - Nov 14, 2018 +
    - ilm.put_lifecycle.json + data_frame.stop_data_frame_transform.json - [ILM] fix rest-api-spec doc links (#35478) - Nov 26, 2018 +
    - ilm.remove_policy.json + graph.explore.json - [ILM] fix ilm.remove_policy rest-spec (#36165) - Dec 3, 2018 +
    - ilm.retry.json + ilm.delete_lifecycle.json - [ILM] fix rest-api-spec doc links (#35478) - Nov 26, 2018 +
    - ilm.start.json + ilm.explain_lifecycle.json - [ILM] fix rest-api-spec doc links (#35478) - Nov 26, 2018 +
    - ilm.stop.json + ilm.get_lifecycle.json - [ILM] fix rest-api-spec doc links (#35478) - Nov 26, 2018 +
    - indices.freeze.json + ilm.get_status.json - Add a `_freeze` / `_unfreeze` API (#35592) - Nov 20, 2018 +
    - indices.unfreeze.json + ilm.move_to_step.json - Add a `_freeze` / `_unfreeze` API (#35592) - Nov 20, 2018 +
    - license.delete.json + ilm.put_lifecycle.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - license.get.json + ilm.remove_policy.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - license.get_basic_status.json + ilm.retry.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - license.get_trial_status.json + ilm.start.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - license.post.json + ilm.stop.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - license.post_start_basic.json + indices.freeze.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - license.post_start_trial.json + indices.unfreeze.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - migration.deprecations.json + license.delete.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - ml.close_job.json + license.get.json - [ML] Marginal gains in slow multi node QA tests (#37825) - Jan 28, 2019 +
    - ml.delete_calendar.json + license.get_basic_status.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.delete_calendar_event.json + license.get_trial_status.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.delete_calendar_job.json + license.post.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.delete_datafeed.json + license.post_start_basic.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.delete_expired_data.json + license.post_start_trial.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.delete_filter.json + migration.deprecations.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.delete_forecast.json + ml.close_job.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.delete_job.json + ml.delete_calendar.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.delete_model_snapshot.json + ml.delete_calendar_event.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.find_file_structure.json + ml.delete_calendar_job.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - ml.flush_job.json + ml.delete_datafeed.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.forecast.json + ml.delete_expired_data.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_buckets.json + ml.delete_filter.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_calendar_events.json + ml.delete_forecast.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_calendars.json + ml.delete_job.json - [ML] Correct small inconsistencies in ml APIs spec and docs (#39908) - Mar 11, 2019 +
    - ml.get_categories.json + ml.delete_model_snapshot.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_datafeed_stats.json + ml.find_file_structure.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_datafeeds.json + ml.flush_job.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_filters.json + ml.forecast.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_influencers.json + ml.get_buckets.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_job_stats.json + ml.get_calendar_events.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_jobs.json + ml.get_calendars.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_model_snapshots.json + ml.get_categories.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_overall_buckets.json + ml.get_datafeed_stats.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.get_records.json + ml.get_datafeeds.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.info.json + ml.get_filters.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.open_job.json + ml.get_influencers.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.post_calendar_events.json + ml.get_job_stats.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.post_data.json + ml.get_jobs.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.preview_datafeed.json + ml.get_model_snapshots.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.put_calendar.json + ml.get_overall_buckets.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.put_calendar_job.json + ml.get_records.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.put_datafeed.json + ml.info.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.put_filter.json + ml.open_job.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.put_job.json + ml.post_calendar_events.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.revert_model_snapshot.json + ml.post_data.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.set_upgrade_mode.json + ml.preview_datafeed.json - ML: Add upgrade mode docs, hlrc, and fix bug (#37942) - Jan 30, 2019 +
    - ml.start_datafeed.json + ml.put_calendar.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.stop_datafeed.json + ml.put_calendar_job.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.update_datafeed.json + ml.put_datafeed.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.update_filter.json + ml.put_filter.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.update_job.json + ml.put_job.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.update_model_snapshot.json + ml.revert_model_snapshot.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.validate.json + ml.set_upgrade_mode.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - ml.validate_detector.json + ml.start_datafeed.json - [ML] Deprecate X-Pack centric ML endpoints (#36315) - Dec 7, 2018 +
    - monitoring.bulk.json + ml.stop_datafeed.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - rollup.delete_job.json + ml.update_datafeed.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - rollup.get_jobs.json + ml.update_filter.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - rollup.get_rollup_caps.json + ml.update_job.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - rollup.get_rollup_index_caps.json + ml.update_model_snapshot.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - rollup.put_job.json + ml.validate.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - rollup.rollup_search.json + ml.validate_detector.json - Index on rollup.rollup_search.json is a list (#39097) (#39654) - Mar 4, 2019 +
    - rollup.start_job.json + monitoring.bulk.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - rollup.stop_job.json + rollup.delete_job.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - security.authenticate.json + rollup.get_jobs.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.change_password.json + rollup.get_rollup_caps.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.clear_cached_realms.json + rollup.get_rollup_index_caps.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.clear_cached_roles.json + rollup.put_job.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.create_api_key.json + rollup.rollup_search.json - Add support for API keys to access Elasticsearch (#38291) - Feb 5, 2019 +
    - security.delete_privileges.json + rollup.start_job.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.delete_role.json + rollup.stop_job.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.delete_role_mapping.json + security.authenticate.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.delete_user.json + security.change_password.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.disable_user.json + security.clear_cached_realms.json - Fixed required fields and paths list (#39358) (#39429) - Feb 27, 2019 +
    - security.enable_user.json + security.clear_cached_roles.json - Fixed required fields and paths list (#39358) (#39429) - Feb 27, 2019 +
    - security.get_api_key.json + security.create_api_key.json - Add support for API keys to access Elasticsearch (#38291) - Feb 5, 2019 +
    - security.get_privileges.json + security.delete_privileges.json - Fixed required fields and paths list (#39358) (#39429) - Feb 27, 2019 +
    - security.get_role.json + security.delete_role.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.get_role_mapping.json + security.delete_role_mapping.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.get_token.json + security.delete_user.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.get_user.json + security.disable_user.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.get_user_privileges.json + security.enable_user.json - Fix some documentation urls in rest-api-spec (#40618) (#41146) - Apr 12, 2019 +
    - security.has_privileges.json + security.get_api_key.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.invalidate_api_key.json + security.get_privileges.json - Add support for API keys to access Elasticsearch (#38291) - Feb 5, 2019 +
    - security.invalidate_token.json + security.get_role.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.put_privileges.json + security.get_role_mapping.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.put_role.json + security.get_token.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.put_role_mapping.json + security.get_user.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - security.put_user.json + security.get_user_privileges.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - sql.clear_cursor.json + security.has_privileges.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - sql.query.json + security.invalidate_api_key.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - sql.translate.json + security.invalidate_token.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - ssl.certificates.json + security.put_privileges.json - Deprecate /_xpack/security/* in favor of /_security/* (#36293) - Dec 11, 2018 +
    - watcher.ack_watch.json + security.put_role.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - watcher.activate_watch.json + security.put_role_mapping.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - watcher.deactivate_watch.json + security.put_user.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - watcher.delete_watch.json + sql.clear_cursor.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - watcher.execute_watch.json + sql.query.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - watcher.get_watch.json + sql.translate.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - watcher.put_watch.json + ssl.certificates.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - watcher.start.json + watcher.ack_watch.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - watcher.stats.json + watcher.activate_watch.json - metric on watcher stats is a list not an enum (#39114) (#39646) - Mar 4, 2019 +
    - watcher.stop.json + watcher.deactivate_watch.json - Fix #38623 remove xpack namespace REST API (#38625) (#39037) - Feb 18, 2019 +
    - xpack.info.json + watcher.delete_watch.json - Migrate x-pack-elasticsearch source to elasticsearch - Apr 20, 2018 +
    - xpack.usage.json + watcher.execute_watch.json - Migrate x-pack-elasticsearch source to elasticsearch - Apr 20, 2018 + +
    + + + + watcher.get_watch.json + + + + + +
    + + + + watcher.put_watch.json + + + + + +
    + + + + watcher.start.json + + + + + +
    + + + + watcher.stats.json + + + + + +
    + + + + watcher.stop.json + + + + + +
    + + + + xpack.info.json + + + + + +
    + + + + xpack.usage.json + + + + +
    -
    + @@ -5834,7 +2794,7 @@