Skip to content

Commit 7f2ba91

Browse files
committed
adjusted enrich rest specs to new format
1 parent 2677ac1 commit 7f2ba91

File tree

4 files changed

+53
-46
lines changed

4 files changed

+53
-46
lines changed

x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.delete_policy.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
"enrich.delete_policy": {
33
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-delete-policy.html",
44
"stability" : "stable",
5-
"methods": [ "DELETE" ],
65
"url": {
7-
"path": "/_enrich/policy/{name}",
8-
"paths": ["/_enrich/policy/{name}"],
9-
"parts": {
10-
"name": {
11-
"type" : "string",
12-
"description" : "The name of the enrich policy"
6+
"paths": [
7+
{
8+
"path": "/_enrich/policy/{name}",
9+
"methods": [ "DELETE" ],
10+
"parts": {
11+
"name": {
12+
"type" : "string",
13+
"description" : "The name of the enrich policy"
14+
}
15+
}
1316
}
14-
},
15-
"params": {
16-
}
17-
},
18-
"body": null
17+
]
18+
}
1919
}
2020
}

x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.execute_policy.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
"enrich.execute_policy": {
33
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-execute-policy.html",
44
"stability" : "stable",
5-
"methods": [ "PUT" ],
65
"url": {
7-
"path": "/_enrich/policy/{name}/_execute",
8-
"paths": ["/_enrich/policy/{name}/_execute"],
9-
"parts": {
10-
"name": {
11-
"type" : "string",
12-
"description" : "The name of the enrich policy"
6+
"paths": [
7+
{
8+
"path": "/_enrich/policy/{name}/_execute",
9+
"methods": [ "PUT" ],
10+
"parts": {
11+
"name": {
12+
"type" : "string",
13+
"description" : "The name of the enrich policy"
14+
}
15+
}
1316
}
14-
},
15-
"params": {
16-
}
17-
},
18-
"body": null
17+
]
18+
}
1919
}
2020
}

x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.get_policy.json

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@
22
"enrich.get_policy": {
33
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-get-policy.html",
44
"stability" : "stable",
5-
"methods": [ "GET" ],
65
"url": {
7-
"paths": ["/_enrich/policy/{name}", "/_enrich/policy/"],
8-
"parts": {
9-
"name": {
10-
"type" : "string",
11-
"description" : "The name of the enrich policy"
6+
"paths": [
7+
{
8+
"path": "/_enrich/policy/{name}",
9+
"methods": [ "GET" ],
10+
"parts": {
11+
"name": {
12+
"type" : "string",
13+
"description" : "The name of the enrich policy"
14+
}
15+
}
16+
},
17+
{
18+
"path": "/_enrich/policy/",
19+
"methods": [ "GET" ]
1220
}
13-
},
14-
"params": {
15-
}
16-
},
17-
"body": null
21+
]
22+
}
1823
}
1924
}

x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.put_policy.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
"enrich.put_policy": {
33
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-put-policy.html",
44
"stability" : "stable",
5-
"methods": [ "PUT" ],
65
"url": {
7-
"path": "/_enrich/policy/{name}",
8-
"paths": ["/_enrich/policy/{name}"],
9-
"parts": {
10-
"name": {
11-
"type" : "string",
12-
"description" : "The name of the enrich policy"
6+
"paths": [
7+
{
8+
"path": "/_enrich/policy/{name}",
9+
"methods": [ "PUT" ],
10+
"parts": {
11+
"name": {
12+
"type" : "string",
13+
"description" : "The name of the enrich policy"
14+
}
15+
}
1316
}
14-
},
15-
"params": {
16-
}
17+
]
1718
},
1819
"body": {
19-
"description": "The enrich policy to register"
20+
"description": "The enrich policy to register",
21+
"required": true
2022
}
2123
}
2224
}

0 commit comments

Comments
 (0)