Skip to content

Commit

Permalink
[DOCS] Add more transform example overlays (#2807)
Browse files Browse the repository at this point in the history
* [DOCS] Fix example paths in overlays

* Add preview and update transform examples to overlay
  • Loading branch information
lcawl authored Aug 29, 2024
1 parent 48a6409 commit 43c627a
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions docs/overlays/elasticsearch-serverless-openapi-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,45 @@ actions:
application/json:
examples:
createTransformRequestExample1:
$ref: "../../specification/transform/put_transform/examples/request/PutTransformRequestExample1.json"
$ref: "../../specification/transform/put_transform/PutTransformRequestExample1.json"
createTransformRequestExample2:
$ref: "../../specification/transform/put_transform/examples/request/PutTransformRequestExample2.json"
$ref: "../../specification/transform/put_transform/PutTransformRequestExample2.json"
responses:
200:
content:
application/json:
examples:
createTransformResponseExample1:
$ref: "../../specification/transform/put_transform/examples/200_response/PutTransformResponseExample1.json"
$ref: "../../specification/transform/put_transform/PutTransformResponseExample1.json"
- target: "$.components['requestBodies']['transform.preview_transform']"
description: "Add examples for preview transform operation"
update:
content:
application/json:
examples:
previewTransformRequestExample1:
$ref: "../../specification/transform/preview_transform/PreviewTransformRequestExample1.json"
- target: "$.components['reponses']['transform.preview_transform#200']"
description: "Add examples for preview transform operation"
update:
content:
application/json:
examples:
previewTransformResponseExample1:
$ref: "../../specification/transform/preview_transform/PreviewTransformResponseExample1.json"
- target: "$.paths['/_transform/{transform_id}/_update']['post']"
description: "Add examples for update transform operation"
update:
requestBody:
content:
application/json:
examples:
updateTransformRequestExample1:
$ref: "../../specification/transform/update_transform/UpdateTransformRequestExample1.json"
responses:
200:
content:
application/json:
examples:
updateTransformResponseExample1:
$ref: "../../specification/transform/update_transform/UpdateTransformResponseExample1.json"

0 comments on commit 43c627a

Please sign in to comment.