From 62da077beb1ce8fec8f66411a2418970e052fbcb Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Thu, 20 Feb 2020 12:33:06 +1100 Subject: [PATCH] Specify name on enrich.get_policy as list type (#50217) This commit updates the enrich.get_policy API to specify name as a list, in line with other URL parts that accept a comma-separated list of values. In addition, update the get enrich policy API docs to align the URL part name in the documentation with the name used in the REST API specs. (cherry picked from commit 94f6f946ef283dc93040e052b4676c5bc37f4bde) --- docs/reference/ingest/apis/enrich/get-enrich-policy.asciidoc | 4 ++-- .../test/resources/rest-api-spec/api/enrich.get_policy.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/reference/ingest/apis/enrich/get-enrich-policy.asciidoc b/docs/reference/ingest/apis/enrich/get-enrich-policy.asciidoc index adc49202b46..f405231685e 100644 --- a/docs/reference/ingest/apis/enrich/get-enrich-policy.asciidoc +++ b/docs/reference/ingest/apis/enrich/get-enrich-policy.asciidoc @@ -50,7 +50,7 @@ GET /_enrich/policy/my-policy [[get-enrich-policy-api-request]] ==== {api-request-title} -`GET /_enrich/policy/` +`GET /_enrich/policy/` `GET /_enrich/policy` @@ -66,7 +66,7 @@ include::put-enrich-policy.asciidoc[tag=enrich-policy-api-prereqs] [[get-enrich-policy-api-path-params]] ==== {api-path-parms-title} -``:: +``:: + -- (Optional, string) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.get_policy.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.get_policy.json index dc2ab9d9e9c..aa13648f722 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.get_policy.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.get_policy.json @@ -11,8 +11,8 @@ "methods": [ "GET" ], "parts": { "name": { - "type" : "string", - "description" : "The name of the enrich policy" + "type" : "list", + "description" : "A comma-separated list of enrich policy names" } } },