Auto-generated API code (#2344)

Co-authored-by: Josh Mock <joshua.mock@elastic.co>
This commit is contained in:
Elastic Machine
2024-08-20 03:32:21 +10:00
committed by GitHub
parent 1042a02733
commit 715292b501
60 changed files with 959 additions and 267 deletions

View File

@ -3,6 +3,25 @@
[source, js]
----
const response = await client.simulate.ingest({});
const response = await client.simulate.ingest({
body: {
docs: [
{
_index: "my-index",
_id: "123",
_source: {
foo: "bar",
},
},
{
_index: "my-index",
_id: "456",
_source: {
foo: "rab",
},
},
],
},
});
console.log(response);
----