Skip to content

Commit 3f151d1

Browse files
committed
[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/
1 parent c2e0552 commit 3f151d1

File tree

6 files changed

+30
-5
lines changed

6 files changed

+30
-5
lines changed

docs/reference/redirects.asciidoc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ See <<slm-api-delete-policy>>.
330330

331331
See <<slm-api-execute-lifecycle>>.
332332

333+
[role="exclude",id="slm-api-execute-policy"]
334+
=== {slm-init} execute lifecycle API
335+
336+
See <<slm-api-execute-lifecycle>>.
337+
333338
[role="exclude",id="slm-api-get"]
334339
=== {slm-init} get policy API
335340

@@ -340,7 +345,27 @@ See <<slm-api-get-policy>>.
340345

341346
See <<slm-api-get-stats>>.
342347

348+
[role="exclude",id="slm-get-status"]
349+
=== {slm-init} status API
350+
351+
See <<slm-api-get-status>>.
352+
343353
[role="exclude",id="slm-api-put"]
344354
=== {slm-init} put policy API
345355

346356
See <<slm-api-put-policy>>.
357+
358+
[role="exclude",id="slm-start"]
359+
=== Start {slm} API
360+
361+
See <<slm-api-start>>.
362+
363+
[role="exclude",id="slm-stop"]
364+
=== Stop {slm} API
365+
366+
See <<slm-api-stop>>.
367+
368+
[role="exclude",id="eql-search"]
369+
=== EQL search API
370+
371+
See <<eql>>.

x-pack/plugin/src/test/resources/rest-api-spec/api/eql.search.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"eql.search":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search.html"
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/eql.html"
55
},
66
"stability": "beta",
77
"url":{

x-pack/plugin/src/test/resources/rest-api-spec/api/slm.execute_lifecycle.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"slm.execute_lifecycle":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-policy.html"
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html"
55
},
66
"stability":"stable",
77
"url":{

x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"slm.get_status":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html"
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html"
55
},
66
"stability":"stable",
77
"url":{

x-pack/plugin/src/test/resources/rest-api-spec/api/slm.start.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"slm.start":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html"
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html"
55
},
66
"stability":"stable",
77
"url":{

x-pack/plugin/src/test/resources/rest-api-spec/api/slm.stop.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"slm.stop":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html"
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html"
55
},
66
"stability":"stable",
77
"url":{

0 commit comments

Comments
 (0)