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 3a19ca65b04..a775ca28798 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 @@ -2,19 +2,19 @@ "enrich.delete_policy": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-delete-policy.html", "stability" : "stable", - "methods": [ "DELETE" ], "url": { - "path": "/_enrich/policy/{name}", - "paths": ["/_enrich/policy/{name}"], - "parts": { - "name": { - "type" : "string", - "description" : "The name of the enrich policy" + "paths": [ + { + "path": "/_enrich/policy/{name}", + "methods": [ "DELETE" ], + "parts": { + "name": { + "type" : "string", + "description" : "The name of the enrich policy" + } + } } - }, - "params": { - } - }, - "body": null + ] + } } } 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 2144b9259bc..b6115e40ec6 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 @@ -2,19 +2,19 @@ "enrich.execute_policy": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-execute-policy.html", "stability" : "stable", - "methods": [ "PUT" ], "url": { - "path": "/_enrich/policy/{name}/_execute", - "paths": ["/_enrich/policy/{name}/_execute"], - "parts": { - "name": { - "type" : "string", - "description" : "The name of the enrich policy" + "paths": [ + { + "path": "/_enrich/policy/{name}/_execute", + "methods": [ "PUT" ], + "parts": { + "name": { + "type" : "string", + "description" : "The name of the enrich policy" + } + } } - }, - "params": { - } - }, - "body": null + ] + } } } 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 c2629eb3a6c..685c24ea228 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 @@ -2,18 +2,23 @@ "enrich.get_policy": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-get-policy.html", "stability" : "stable", - "methods": [ "GET" ], "url": { - "paths": ["/_enrich/policy/{name}", "/_enrich/policy/"], - "parts": { - "name": { - "type" : "string", - "description" : "The name of the enrich policy" + "paths": [ + { + "path": "/_enrich/policy/{name}", + "methods": [ "GET" ], + "parts": { + "name": { + "type" : "string", + "description" : "The name of the enrich policy" + } + } + }, + { + "path": "/_enrich/policy/", + "methods": [ "GET" ] } - }, - "params": { - } - }, - "body": null + ] + } } } 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 c88e91211fa..7a1c02f92b9 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 @@ -2,21 +2,23 @@ "enrich.put_policy": { "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-put-policy.html", "stability" : "stable", - "methods": [ "PUT" ], "url": { - "path": "/_enrich/policy/{name}", - "paths": ["/_enrich/policy/{name}"], - "parts": { - "name": { - "type" : "string", - "description" : "The name of the enrich policy" + "paths": [ + { + "path": "/_enrich/policy/{name}", + "methods": [ "PUT" ], + "parts": { + "name": { + "type" : "string", + "description" : "The name of the enrich policy" + } + } } - }, - "params": { - } + ] }, "body": { - "description": "The enrich policy to register" + "description": "The enrich policy to register", + "required": true } } }