From 43c627ad048e841ce489c94c1ace61fa4bc86763 Mon Sep 17 00:00:00 2001 From: Lisa Cawley Date: Wed, 28 Aug 2024 23:45:47 -0700 Subject: [PATCH] [DOCS] Add more transform example overlays (#2807) * [DOCS] Fix example paths in overlays * Add preview and update transform examples to overlay --- ...ticsearch-serverless-openapi-overlays.yaml | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/docs/overlays/elasticsearch-serverless-openapi-overlays.yaml b/docs/overlays/elasticsearch-serverless-openapi-overlays.yaml index 9c0dfa274f..fe1b9a5385 100644 --- a/docs/overlays/elasticsearch-serverless-openapi-overlays.yaml +++ b/docs/overlays/elasticsearch-serverless-openapi-overlays.yaml @@ -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" \ No newline at end of file