diff --git a/docs/reference/cat.asciidoc b/docs/reference/cat.asciidoc index 62d5165984a..2b303e84ab9 100644 --- a/docs/reference/cat.asciidoc +++ b/docs/reference/cat.asciidoc @@ -269,4 +269,4 @@ include::cat/thread_pool.asciidoc[] include::cat/trainedmodel.asciidoc[] -include::cat/transform.asciidoc[] +include::cat/transforms.asciidoc[] diff --git a/docs/reference/cat/transform.asciidoc b/docs/reference/cat/transform.asciidoc deleted file mode 100644 index 835106c08b4..00000000000 --- a/docs/reference/cat/transform.asciidoc +++ /dev/null @@ -1,28 +0,0 @@ -[[cat-transform]] -=== cat transform API -++++ -cat transform -++++ - -Returns configuration and usage information about {transforms}. - - -[[cat-transform-api-request]] -==== {api-request-title} - -`GET /_cat/transform` - - -//[[cat-transform-api-desc]] -//==== {api-description-title} - - -//[[cat-transform-api-query-params]] -//==== {api-query-parms-title} - - -//[[cat-transform-api-response-codes]] -//==== {api-response-codes-title} - -//[[cat-transform-api-examples]] -//==== {api-examples-title} diff --git a/docs/reference/cat/transforms.asciidoc b/docs/reference/cat/transforms.asciidoc new file mode 100644 index 00000000000..78013e394ef --- /dev/null +++ b/docs/reference/cat/transforms.asciidoc @@ -0,0 +1,28 @@ +[[cat-transforms]] +=== cat {transforms} API +++++ +cat transforms +++++ + +Returns configuration and usage information about {transforms}. + + +[[cat-transforms-api-request]] +==== {api-request-title} + +`GET /_cat/transforms` + + +//[[cat-transforms-api-desc]] +//==== {api-description-title} + + +//[[cat-transforms-api-query-params]] +//==== {api-query-parms-title} + + +//[[cat-transforms-api-response-codes]] +//==== {api-response-codes-title} + +//[[cat-transforms-api-examples]] +//==== {api-examples-title} diff --git a/docs/reference/redirects.asciidoc b/docs/reference/redirects.asciidoc index cef26c25900..f9dee5582c4 100644 --- a/docs/reference/redirects.asciidoc +++ b/docs/reference/redirects.asciidoc @@ -607,3 +607,8 @@ See <> and <>. === Asynchronous search coming::[7.x] + +[role="exclude",id="cat-transform"] +=== cat transform API + +See <>. diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/transform.cat_transform.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/transform.cat_transform.json index 26a7be322aa..9cdbc620eb9 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/transform.cat_transform.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/transform.cat_transform.json @@ -1,19 +1,19 @@ { "transform.cat_transform":{ "documentation":{ - "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transform.html" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html" }, "stability":"stable", "url":{ "paths":[ { - "path":"/_cat/transform", + "path":"/_cat/transforms", "methods":[ "GET" ] }, { - "path":"/_cat/transform/{transform_id}", + "path":"/_cat/transforms/{transform_id}", "methods":[ "GET" ], diff --git a/x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/rest/action/RestCatTransformAction.java b/x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/rest/action/RestCatTransformAction.java index 249ae318dd0..52a8ba3e035 100644 --- a/x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/rest/action/RestCatTransformAction.java +++ b/x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/rest/action/RestCatTransformAction.java @@ -43,8 +43,8 @@ public class RestCatTransformAction extends AbstractCatAction { @Override public List routes() { return unmodifiableList(asList( - new Route(GET, "_cat/transform"), - new Route(GET, "_cat/transform/{" + TransformField.TRANSFORM_ID + "}"))); + new Route(GET, "_cat/transforms"), + new Route(GET, "_cat/transforms/{" + TransformField.TRANSFORM_ID + "}"))); } @Override @@ -91,8 +91,8 @@ public class RestCatTransformAction extends AbstractCatAction { @Override protected void documentation(StringBuilder sb) { - sb.append("/_cat/transform\n"); - sb.append("/_cat/transform/{" + TransformField.TRANSFORM_ID + "}\n"); + sb.append("/_cat/transforms\n"); + sb.append("/_cat/transforms/{" + TransformField.TRANSFORM_ID + "}\n"); } @Override