diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 84b13ade52..52f79b9fe6 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -106298,6 +106298,12 @@ "application/json": { "schema": { "$ref": "#/components/schemas/_types.WriteResponseBase" + }, + "examples": { + "CreateResponseExample1": { + "description": "A successful response from `PUT my-index-000001/_create/1` which indexes a document.", + "value": "{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"_seq_no\": 0,\n \"_primary_term\": 1\n}" + } } } } diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index bff7c327ff..c2b7f8be63 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -64836,6 +64836,12 @@ "application/json": { "schema": { "$ref": "#/components/schemas/_types.WriteResponseBase" + }, + "examples": { + "CreateResponseExample1": { + "description": "A successful response from `PUT my-index-000001/_create/1` which indexes a document.", + "value": "{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"_seq_no\": 0,\n \"_primary_term\": 1\n}" + } } } } diff --git a/output/schema/schema.json b/output/schema/schema.json index f619b53934..de3cef6352 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -26372,6 +26372,12 @@ } } }, + "examples": { + "CreateResponseExample1": { + "description": "A successful response from `PUT my-index-000001/_create/1` which indexes a document.", + "value": "{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"_seq_no\": 0,\n \"_primary_term\": 1\n}" + } + }, "name": { "name": "Response", "namespace": "_global.create" diff --git a/specification/_global/create/examples/response/CreateResponseExample1.yaml b/specification/_global/create/examples/response/CreateResponseExample1.yaml new file mode 100644 index 0000000000..f9fbc1ae40 --- /dev/null +++ b/specification/_global/create/examples/response/CreateResponseExample1.yaml @@ -0,0 +1,18 @@ +# summary: '' +description: A successful response from `PUT my-index-000001/_create/1` which indexes a document. +# type: response +# response_code: 200 +value: |- + { + "_index": "my-index-000001", + "_id": "1", + "_version": 1, + "result": "created", + "_shards": { + "total": 1, + "successful": 1, + "failed": 0 + }, + "_seq_no": 0, + "_primary_term": 1 + }