Skip to content

Commit 4db49b2

Browse files
Fix Broken REST API Spec for Repo Cleanup (#45782)
* Fix Broken REST API Spec for Repo Cleanup
1 parent c6a25a8 commit 4db49b2

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/snapshot.cleanup_repository.json

+22-16
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,31 @@
22
"snapshot.cleanup_repository": {
33
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html",
44
"stability": "stable",
5-
"methods": ["POST"],
65
"url": {
7-
"paths": ["/_snapshot/{repository}/_cleanup"],
8-
"parts": {
9-
"repository": {
10-
"type": "string",
11-
"required" : true,
12-
"description": "A repository name"
6+
"paths": [
7+
{
8+
"path": "/_snapshot/{repository}/_cleanup",
9+
"methods": [
10+
"POST"
11+
],
12+
"parts": {
13+
"repository": {
14+
"type": "string",
15+
"required" : true,
16+
"description": "A repository name"
17+
}
18+
}
1319
}
20+
]
21+
},
22+
"params": {
23+
"master_timeout": {
24+
"type" : "time",
25+
"description" : "Explicit operation timeout for connection to master node"
1426
},
15-
"params": {
16-
"master_timeout": {
17-
"type" : "time",
18-
"description" : "Explicit operation timeout for connection to master node"
19-
},
20-
"timeout": {
21-
"type" : "time",
22-
"description" : "Explicit operation timeout"
23-
}
27+
"timeout": {
28+
"type" : "time",
29+
"description" : "Explicit operation timeout"
2430
}
2531
},
2632
"body": {}

0 commit comments

Comments
 (0)