Skip to content

Backport missing 9 #3706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 98 additions & 8 deletions docs/overlays/elasticsearch-openapi-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,96 @@ actions:
examples:
resumeFollowIndexResponseExample1:
$ref: "../../specification/ccr/resume_follow/examples/response/ResumeFollowIndexResponseExample1.yaml"
- target: "$.paths['/{index}/_ccr/unfollow']['post']"
description: "Add examples for unfollow an index"
update:
responses:
200:
content:
application/json:
examples:
ccrUnfollowIndexResponseExample1:
$ref: "../../specification/ccr/unfollow/examples/response/UnfollowIndexResponseExample1.yaml"
- target: "$.paths['/_ccr/stats']['get']"
description: "Add examples for get ccr stats"
update:
responses:
200:
content:
application/json:
examples:
ccrStatsResponseExample1:
$ref: "../../specification/ccr/stats/examples/response/CcrStatsResponseExample1.yaml"
- target: "$.paths['/_ccr/auto_follow/{name}/resume']['post']"
description: "Add examples for resume auto-follow pattern"
update:
responses:
200:
content:
application/json:
examples:
ccrResumeAutoFollowResponseExample1:
$ref: "../../specification/ccr/resume_auto_follow_pattern/examples/response/ResumeAutoFollowPatternResponseExample1.yaml"
- target: "$.paths['/{index}/_ccr/pause_follow']['post']"
description: "Add examples for resume auto-follow pattern"
update:
responses:
200:
content:
application/json:
examples:
ccrPauseFollowResponseExample1:
$ref: "../../specification/ccr/pause_follow/examples/response/PauseFollowIndexResponseExample1.yaml"
- target: "$.paths['/_ccr/auto_follow/{name}/pause']['post']"
description: "Add examples for pause auto-follow pattern"
update:
responses:
200:
content:
application/json:
examples:
ccrPauseAutoFollowPatternResponseExample1:
$ref: "../../specification/ccr/pause_auto_follow_pattern/examples/response/PauseAutoFollowPatternResponseExample1.yaml"
- target: "$.components['responses']['ccr.get_auto_follow_pattern#200']"
description: "Add examples for get auto-follow pattern"
update:
content:
application/json:
examples:
ccrPauseAutoFollowPatternResponseExample1:
$ref: "../../specification/ccr/get_auto_follow_pattern/examples/response/GetAutoFollowPatternResponseExample1.yaml"
- target: "$.paths['/{index}/_ccr/stats']['get']"
description: "Add examples for get follower stats"
update:
responses:
200:
content:
application/json:
examples:
ccrFollowerStatsResponseExample1:
$ref: "../../specification/ccr/follow_stats/examples/response/FollowIndexStatsResponseExample1.yaml"
- target: "$.paths['/{index}/_ccr/info']['get']"
description: "Add examples for get follower info"
update:
responses:
200:
content:
application/json:
examples:
ccrFollowerInfoResponseExample1:
$ref: "../../specification/ccr/follow_info/examples/response/FollowInfoResponseExample1.yaml"
ccrFollowerInfoResponseExample2:
$ref: "../../specification/ccr/follow_info/examples/response/FollowInfoResponseExample2.yaml"
- target: "$.paths['/_ccr/auto_follow/{name}']['delete']"
description: "Add examples for delete auto follow pattern"
update:
responses:
200:
content:
application/json:
examples:
ccrAutoFollowPatternDeleteResponseExample1:
$ref: "../../specification/ccr/delete_auto_follow_pattern/examples/response/DeleteAutoFollowPatternResponseExample1.yaml"
## Examples for cluster
- target: "$.components['requestBodies']['cluster.allocation_explain']"
description: "Add examples for cluster allocation explain operation"
Expand Down Expand Up @@ -493,16 +583,16 @@ actions:
examples:
getIndicesRecoveryResponseExample1:
$ref: "../../specification/indices/recovery/examples/200_response/indicesRecoveryResponseExample1.yaml"
- target: "$.paths['/_resolve/cluster/{name}']['get']"
- target: "$.components['responses']['indices.resolve_cluster#200']"
description: "Add examples for resolve cluster operation"
update:
responses:
200:
content:
application/json:
examples:
resolveClusterResponseExample1:
$ref: "../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample1.yaml"
content:
application/json:
examples:
resolveClusterResponseExample1:
$ref: "../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample1.yaml"
resolveClusterResponseExample2:
$ref: "../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample2.yaml"
- target: "$.components['requestBodies']['indices.shrink']"
description: "Add example for shrink index request"
update:
Expand Down
24 changes: 24 additions & 0 deletions docs/overlays/elasticsearch-shared-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2463,6 +2463,30 @@ actions:
examples:
asyncSearchSubmitResponseExample1:
$ref: "../../specification/async_search/submit/examples/response/AsyncSearchSubmitResponseExample1.yaml"
- target: "$.paths['/_async_search/status/{id}']['get']"
description: "Add examples for get async search status"
update:
responses:
200:
content:
application/json:
examples:
asyncSearchStatusResponseExample1:
$ref: "../../specification/async_search/status/examples/response/AsyncSearchStatusResponseExample1.yaml"
asyncSearchStatusResponseExample2:
$ref: "../../specification/async_search/status/examples/response/AsyncSearchStatusResponseExample2.yaml"
asyncSearchStatusResponseExample3:
$ref: "../../specification/async_search/status/examples/response/AsyncSearchStatusResponseExample3.yaml"
- target: "$.paths['/_async_search/{id}']['get']"
description: "Add examples for get async search"
update:
responses:
200:
content:
application/json:
examples:
asyncSearchResponseExample1:
$ref: "../../specification/async_search/get/examples/response/AsyncSearchGetResponseExample1.yaml"
## Examples for search applications
- target: "$.paths['/_application/search_application']['get']"
description: "Add examples for get search applications operation"
Expand Down
Loading