From 59f28f4f2feeba3f6d2f0b632410577eacb28121 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Sun, 2 Feb 2020 10:01:13 +0100 Subject: [PATCH] Fix the Enrich API documentation in REST specification (#51528) This patch fixes the REST API documentation for the Enrich APIs to conform to the current schema. --- .../resources/rest-api-spec/api/enrich.delete_policy.json | 4 +++- .../resources/rest-api-spec/api/enrich.execute_policy.json | 4 +++- .../test/resources/rest-api-spec/api/enrich.get_policy.json | 4 +++- .../test/resources/rest-api-spec/api/enrich.put_policy.json | 4 +++- .../src/test/resources/rest-api-spec/api/enrich.stats.json | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.delete_policy.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.delete_policy.json index a775ca28798a2..2d4fd1a7baf27 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.delete_policy.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.delete_policy.json @@ -1,6 +1,8 @@ { "enrich.delete_policy": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-delete-policy.html", + "documentation": { + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html" + }, "stability" : "stable", "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.execute_policy.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.execute_policy.json index b49486a062036..90413423a9dc0 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.execute_policy.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.execute_policy.json @@ -1,6 +1,8 @@ { "enrich.execute_policy": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-execute-policy.html", + "documentation": { + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html" + }, "stability" : "stable", "url": { "paths": [ 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 dd644cd39ed4b..34e896f1c36c2 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 @@ -1,6 +1,8 @@ { "enrich.get_policy": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-get-policy.html", + "documentation": { + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html" + }, "stability" : "stable", "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.put_policy.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.put_policy.json index 7a1c02f92b95d..c23bec02ab0a0 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.put_policy.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.put_policy.json @@ -1,6 +1,8 @@ { "enrich.put_policy": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-put-policy.html", + "documentation": { + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html" + }, "stability" : "stable", "url": { "paths": [ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.stats.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.stats.json index 0dda96d81facf..69175d5563475 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.stats.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.stats.json @@ -1,6 +1,8 @@ { "enrich.stats": { - "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats.html", + "documentation": { + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html" + }, "stability" : "stable", "url": { "paths": [