Skip to content

Commit c83c25d

Browse files
committed
Add overlay for get and explain lifecycle examples
1 parent f47f444 commit c83c25d

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,31 @@ actions:
5050
examples:
5151
deleteLifecycleResponseExample1:
5252
$ref: "../../specification/ilm/delete_lifecycle/DeleteLifecycleResponseExample1.json"
53-
53+
- target: "$.paths['/{index}/_ilm/explain']['get']"
54+
description: "Add examples for explain lifecycle operation"
55+
update:
56+
responses:
57+
200:
58+
content:
59+
application/json:
60+
examples:
61+
explainLifecycleResponseExample1:
62+
$ref: "../../specification/ilm/explain_lifecycle/ExplainResponseExample1.json"
63+
- target: "$.components['responses']['ilm.get_lifecycle#200']"
64+
description: "Add examples for get lifecycle policy operation"
65+
update:
66+
content:
67+
application/json:
68+
examples:
69+
getLifecycleResponseExample1:
70+
$ref: "../../specification/ilm/get_lifecycle/GetLifecycleResponseExample1.json"
71+
- target: "$.paths['/_ilm/status']['get']"
72+
description: "Add examples for get index lifecycle management status operation"
73+
update:
74+
responses:
75+
200:
76+
content:
77+
application/json:
78+
examples:
79+
getLifecycleStatusResponseExample1:
80+
$ref: "../../specification/ilm/get_status/GetStatusResponseExample1.json"

0 commit comments

Comments
 (0)