Skip to content

Commit e71f2a3

Browse files
committed
Add example overlay for data stream stats and delete lifecycle
1 parent 9729a32 commit e71f2a3

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,12 @@ actions:
244244
application/json:
245245
examples:
246246
indicesCloseResponseExample1:
247-
$ref: "../../specification/indices/close/indicesCloseResponseExample1.yaml"
247+
$ref: "../../specification/indices/close/indicesCloseResponseExample1.yaml"
248+
- target: "$.components['responses']['indices.data_streams_stats#200']"
249+
description: "Add example for data stream stats response"
250+
update:
251+
content:
252+
application/json:
253+
examples:
254+
indicesDataStreamStatsResponseExample1:
255+
$ref: "../../specification/indices/data_streams_stats/indicesDataStreamStatsResponseExample1.yaml"

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,14 @@ actions:
214214
indicesCreateRequestExample1:
215215
$ref: "../../specification/indices/create/indicesCreateRequestExample1.yaml"
216216
indicesCreateRequestExample2:
217-
$ref: "../../specification/indices/create/indicesCreateRequestExample2.yaml"
217+
$ref: "../../specification/indices/create/indicesCreateRequestExample2.yaml"
218+
- target: "$.paths['/_data_stream/{name}/_lifecycle']['delete']"
219+
description: "Add example for delete data stream lifecycle response"
220+
update:
221+
responses:
222+
200:
223+
content:
224+
application/json:
225+
examples:
226+
indicesDeleteDataLifecycleResponseExample1:
227+
$ref: "../../specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponseExample1.yaml"

0 commit comments

Comments
 (0)