[Transform] renamed _cat/transform to _cat/transforms (#53743) (#53771)

renaming _cat/transform to  _cat/transforms for uniformity with the other _cat apis.
This commit is contained in:
Benjamin Trent 2020-03-18 19:54:03 -04:00 committed by GitHub
parent 268e512f0b
commit 415d73c27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 41 additions and 36 deletions

View File

@ -269,4 +269,4 @@ include::cat/thread_pool.asciidoc[]
include::cat/trainedmodel.asciidoc[] include::cat/trainedmodel.asciidoc[]
include::cat/transform.asciidoc[] include::cat/transforms.asciidoc[]

View File

@ -1,28 +0,0 @@
[[cat-transform]]
=== cat transform API
++++
<titleabbrev>cat transform</titleabbrev>
++++
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}

View File

@ -0,0 +1,28 @@
[[cat-transforms]]
=== cat {transforms} API
++++
<titleabbrev>cat transforms</titleabbrev>
++++
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}

View File

@ -607,3 +607,8 @@ See <<ccs-gateway-seed-nodes>> and <<ccs-min-roundtrips>>.
=== Asynchronous search === Asynchronous search
coming::[7.x] coming::[7.x]
[role="exclude",id="cat-transform"]
=== cat transform API
See <<cat-transforms>>.

View File

@ -1,19 +1,19 @@
{ {
"transform.cat_transform":{ "transform.cat_transform":{
"documentation":{ "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", "stability":"stable",
"url":{ "url":{
"paths":[ "paths":[
{ {
"path":"/_cat/transform", "path":"/_cat/transforms",
"methods":[ "methods":[
"GET" "GET"
] ]
}, },
{ {
"path":"/_cat/transform/{transform_id}", "path":"/_cat/transforms/{transform_id}",
"methods":[ "methods":[
"GET" "GET"
], ],

View File

@ -43,8 +43,8 @@ public class RestCatTransformAction extends AbstractCatAction {
@Override @Override
public List<Route> routes() { public List<Route> routes() {
return unmodifiableList(asList( return unmodifiableList(asList(
new Route(GET, "_cat/transform"), new Route(GET, "_cat/transforms"),
new Route(GET, "_cat/transform/{" + TransformField.TRANSFORM_ID + "}"))); new Route(GET, "_cat/transforms/{" + TransformField.TRANSFORM_ID + "}")));
} }
@Override @Override
@ -91,8 +91,8 @@ public class RestCatTransformAction extends AbstractCatAction {
@Override @Override
protected void documentation(StringBuilder sb) { protected void documentation(StringBuilder sb) {
sb.append("/_cat/transform\n"); sb.append("/_cat/transforms\n");
sb.append("/_cat/transform/{" + TransformField.TRANSFORM_ID + "}\n"); sb.append("/_cat/transforms/{" + TransformField.TRANSFORM_ID + "}\n");
} }
@Override @Override