diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 5ffe5a87b2..c2a4f91ea4 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -103702,6 +103702,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 c5cc483a87..1f018ddd07 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -62981,6 +62981,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 bb6e25c29e..5a44a47aef 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -25412,6 +25412,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 + }