From 445655f1dd5e8f3a5ae32b6391c69683bd866986 Mon Sep 17 00:00:00 2001 From: James Rodewig Date: Fri, 31 Jan 2020 10:35:04 -0500 Subject: [PATCH] [DOCS] Add redirects, update JSON spec to fix docs build (#51747) Docs build [#11556][0] broke due to several outdated or incorrect links in the JSON REST spec. This fixes those links where possible and adds redirects. [0]: https://elasticsearch-ci.elastic.co/job/elastic+docs+master+build/11556/ --- docs/reference/redirects.asciidoc | 25 +++++++++++++++++++ .../rest-api-spec/api/eql.search.json | 2 +- .../api/slm.execute_lifecycle.json | 2 +- .../rest-api-spec/api/slm.get_status.json | 2 +- .../rest-api-spec/api/slm.start.json | 2 +- .../resources/rest-api-spec/api/slm.stop.json | 2 +- 6 files changed, 30 insertions(+), 5 deletions(-) diff --git a/docs/reference/redirects.asciidoc b/docs/reference/redirects.asciidoc index 9725496d48e15..0517c622403e5 100644 --- a/docs/reference/redirects.asciidoc +++ b/docs/reference/redirects.asciidoc @@ -331,6 +331,11 @@ See <>. See <>. +[role="exclude",id="slm-api-execute-policy"] +=== {slm-init} execute lifecycle API + +See <>. + [role="exclude",id="slm-api-get"] === {slm-init} get policy API @@ -341,7 +346,27 @@ See <>. See <>. +[role="exclude",id="slm-get-status"] +=== {slm-init} status API + +See <>. + [role="exclude",id="slm-api-put"] === {slm-init} put policy API See <>. + +[role="exclude",id="slm-start"] +=== Start {slm} API + +See <>. + +[role="exclude",id="slm-stop"] +=== Stop {slm} API + +See <>. + +[role="exclude",id="eql-search"] +=== EQL search API + +See <>. diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/eql.search.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/eql.search.json index a08dceaccbdf2..68c105a41d7e4 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/eql.search.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/eql.search.json @@ -1,7 +1,7 @@ { "eql.search":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/eql.html" }, "stability": "beta", "url":{ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.execute_lifecycle.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.execute_lifecycle.json index 6538dabd23086..963a6e0577b41 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.execute_lifecycle.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.execute_lifecycle.json @@ -1,7 +1,7 @@ { "slm.execute_lifecycle":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-policy.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html" }, "stability":"stable", "url":{ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_status.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_status.json index 163ad5558c3d9..4ea6089ce438a 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_status.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_status.json @@ -1,7 +1,7 @@ { "slm.get_status":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html" }, "stability":"stable", "url":{ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.start.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.start.json index 21ae3d5097862..0ceb74e927955 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.start.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.start.json @@ -1,7 +1,7 @@ { "slm.start":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html" }, "stability":"stable", "url":{ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.stop.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.stop.json index 63b74ab9c2f7e..b052f4bf975d9 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.stop.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/slm.stop.json @@ -1,7 +1,7 @@ { "slm.stop":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html" }, "stability":"stable", "url":{