From 3f151d1d75c50dbef28ffb09c266e3a6c9ce802e 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 f8cd699a756..794c2612ba8 100644 --- a/docs/reference/redirects.asciidoc +++ b/docs/reference/redirects.asciidoc @@ -330,6 +330,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 @@ -340,7 +345,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 a08dceaccbd..68c105a41d7 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 6538dabd230..963a6e0577b 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 163ad5558c3..4ea6089ce43 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 21ae3d50978..0ceb74e9279 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 63b74ab9c2f..b052f4bf975 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":{