Skip to content

Commit 7d5bec5

Browse files
authored
Add simulate.ingest specification (#3400) (#3484)
(cherry picked from commit 46b99ee)
1 parent 834995f commit 7d5bec5

22 files changed

+1442
-713
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ actions:
394394
examples:
395395
indicesLegacyPutTemplateRequestExample1:
396396
$ref: "../../specification/indices/put_template/indicesPutTemplateRequestExample1.yaml"
397-
398397
## Examples for behavioral analytics
399398
- target: "$.paths['/_application/analytics/{collection_name}/event/{event_type}']['post']"
400399
description: "Add examples for post analytics collection event operation"
@@ -416,6 +415,33 @@ actions:
416415
examples:
417416
dataStreamLifecycleStatsResponseExample1:
418417
$ref: "../../specification/indices/get_data_lifecycle_stats/examples/response/IndicesGetDataLifecycleStatsResponseExample1.yaml"
418+
## Examples for ingest
419+
- target: "$.components['requestBodies']['simulate.ingest']"
420+
description: "Add example for simulate ingest request"
421+
update:
422+
content:
423+
application/json:
424+
examples:
425+
simulateIngestRequestExample1:
426+
$ref: "../../specification/simulate/ingest/examples/request/SimulateIngestRequestExample1.yaml"
427+
simulateIngestRequestExample2:
428+
$ref: "../../specification/simulate/ingest/examples/request/SimulateIngestRequestExample2.yaml"
429+
simulateIngestRequestExample3:
430+
$ref: "../../specification/simulate/ingest/examples/request/SimulateIngestRequestExample3.yaml"
431+
simulateIngestRequestExample4:
432+
$ref: "../../specification/simulate/ingest/examples/request/SimulateIngestRequestExample4.yaml"
433+
- target: "$.components['responses']['simulate.ingest#200']"
434+
description: "Add example for simulate ingest response"
435+
update:
436+
content:
437+
application/json:
438+
examples:
439+
simulateIngestResponseExample1:
440+
$ref: "../../specification/simulate/ingest/examples/response/SimulateIngestResponseExample1.yaml"
441+
simulateIngestResponseExample2:
442+
$ref: "../../specification/simulate/ingest/examples/response/SimulateIngestResponseExample2.yaml"
443+
simulateIngestResponseExample3:
444+
$ref: "../../specification/simulate/ingest/examples/response/SimulateIngestResponseExample3.yaml"
419445
## Examples for licensing
420446
- target: "$.paths['/_license/basic_status']['get']"
421447
description: "Add example for get basic status response"
@@ -485,7 +511,7 @@ actions:
485511
$ref: "../../specification/search_application/render_query/SearchApplicationsRenderQueryRequestExample1.yaml"
486512
renderSearchApplicationQueryResponseExample1:
487513
$ref: "../../specification/search_application/render_query/SearchApplicationsRenderQueryResponseExample1.yaml"
488-
514+
# Examples for security
489515
- target: "$.paths['/_security/api_key/_bulk_update']['post']"
490516
description: "Add examples for bulk update API keys operation"
491517
update:
@@ -519,4 +545,4 @@ actions:
519545
application/json:
520546
examples:
521547
delegatePkiResponseExample1:
522-
$ref: "../../specification/security/delegate_pki/examples/200_response/SecurityDelegatePkiResponseExample1.yaml"
548+
$ref: "../../specification/security/delegate_pki/examples/200_response/SecurityDelegatePkiResponseExample1.yaml"

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,15 +1292,15 @@ actions:
12921292
application/json:
12931293
examples:
12941294
simulatePipelineRequestExample1:
1295-
$ref: "../../specification/ingest/simulate/SimulatePipelineRequestExample1.yaml"
1295+
$ref: "../../specification/ingest/simulate/examples/request/SimulatePipelineRequestExample1.yaml"
12961296
- target: "$.components['responses']['ingest.simulate#200']"
12971297
description: "Add example for simulate pipeline response"
12981298
update:
12991299
content:
13001300
application/json:
13011301
examples:
13021302
simulatePipelineResponseExample1:
1303-
$ref: "../../specification/ingest/simulate/SimulatePipelineResponseExample1.yaml"
1303+
$ref: "../../specification/ingest/simulate/examples/response/SimulatePipelineResponseExample1.yaml"
13041304
- target: "$.components['requestBodies']['indices.put_index_template']"
13051305
description: "Add example for create index template request"
13061306
update:

output/openapi/elasticsearch-openapi.json

Lines changed: 199 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)