Skip to content
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

Add simulate.ingest specification #3400

Merged
merged 4 commits into from
Jan 8, 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
32 changes: 29 additions & 3 deletions docs/overlays/elasticsearch-openapi-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ actions:
examples:
indicesLegacyPutTemplateRequestExample1:
$ref: "../../specification/indices/put_template/indicesPutTemplateRequestExample1.yaml"

## Examples for behavioral analytics
- target: "$.paths['/_application/analytics/{collection_name}/event/{event_type}']['post']"
description: "Add examples for post analytics collection event operation"
Expand All @@ -416,6 +415,33 @@ actions:
examples:
dataStreamLifecycleStatsResponseExample1:
$ref: "../../specification/indices/get_data_lifecycle_stats/examples/response/IndicesGetDataLifecycleStatsResponseExample1.yaml"
## Examples for ingest
- target: "$.components['requestBodies']['simulate.ingest']"
description: "Add example for simulate ingest request"
update:
content:
application/json:
examples:
simulateIngestRequestExample1:
$ref: "../../specification/simulate/ingest/examples/request/SimulateIngestRequestExample1.yaml"
simulateIngestRequestExample2:
$ref: "../../specification/simulate/ingest/examples/request/SimulateIngestRequestExample2.yaml"
simulateIngestRequestExample3:
$ref: "../../specification/simulate/ingest/examples/request/SimulateIngestRequestExample3.yaml"
simulateIngestRequestExample4:
$ref: "../../specification/simulate/ingest/examples/request/SimulateIngestRequestExample4.yaml"
- target: "$.components['responses']['simulate.ingest#200']"
description: "Add example for simulate ingest response"
update:
content:
application/json:
examples:
simulateIngestResponseExample1:
$ref: "../../specification/simulate/ingest/examples/response/SimulateIngestResponseExample1.yaml"
simulateIngestResponseExample2:
$ref: "../../specification/simulate/ingest/examples/response/SimulateIngestResponseExample2.yaml"
simulateIngestResponseExample3:
$ref: "../../specification/simulate/ingest/examples/response/SimulateIngestResponseExample3.yaml"
## Examples for licensing
- target: "$.paths['/_license/basic_status']['get']"
description: "Add example for get basic status response"
Expand Down Expand Up @@ -485,7 +511,7 @@ actions:
$ref: "../../specification/search_application/render_query/SearchApplicationsRenderQueryRequestExample1.yaml"
renderSearchApplicationQueryResponseExample1:
$ref: "../../specification/search_application/render_query/SearchApplicationsRenderQueryResponseExample1.yaml"

# Examples for security
- target: "$.paths['/_security/api_key/_bulk_update']['post']"
description: "Add examples for bulk update API keys operation"
update:
Expand Down Expand Up @@ -519,4 +545,4 @@ actions:
application/json:
examples:
delegatePkiResponseExample1:
$ref: "../../specification/security/delegate_pki/examples/200_response/SecurityDelegatePkiResponseExample1.yaml"
$ref: "../../specification/security/delegate_pki/examples/200_response/SecurityDelegatePkiResponseExample1.yaml"
4 changes: 2 additions & 2 deletions docs/overlays/elasticsearch-shared-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1292,15 +1292,15 @@ actions:
application/json:
examples:
simulatePipelineRequestExample1:
$ref: "../../specification/ingest/simulate/SimulatePipelineRequestExample1.yaml"
$ref: "../../specification/ingest/simulate/examples/request/SimulatePipelineRequestExample1.yaml"
- target: "$.components['responses']['ingest.simulate#200']"
description: "Add example for simulate pipeline response"
update:
content:
application/json:
examples:
simulatePipelineResponseExample1:
$ref: "../../specification/ingest/simulate/SimulatePipelineResponseExample1.yaml"
$ref: "../../specification/ingest/simulate/examples/response/SimulatePipelineResponseExample1.yaml"
- target: "$.components['requestBodies']['indices.put_index_template']"
description: "Add example for create index template request"
update:
Expand Down
212 changes: 199 additions & 13 deletions output/openapi/elasticsearch-openapi.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading