Skip to content

Commit ac0e5c9

Browse files
committed
adjusted enrich rest specs to new format
1 parent 5707bc7 commit ac0e5c9

File tree

5 files changed

+56
-54
lines changed

5 files changed

+56
-54
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: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
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-
"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": [ "GET" ],
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.list_policy.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"enrich.list_policy": {
33
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-list-policy.html",
44
"stability" : "stable",
5-
"methods": [ "GET" ],
65
"url": {
7-
"path": "/_enrich/policy",
8-
"paths": ["/_enrich/policy"],
9-
"parts": {},
10-
"params": {}
11-
},
12-
"body": null
6+
"paths": [
7+
{
8+
"path": "/_enrich/policy",
9+
"methods": [ "GET" ]
10+
}
11+
]
12+
}
1313
}
1414
}

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)