-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS] Add examples for create, delete, index, reindex APIs (#3540)
(cherry picked from commit f48fc40)
- Loading branch information
Showing
57 changed files
with
1,972 additions
and
580 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
specification/_global/create/examples/request/CreateRequestExample1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# summary: | ||
# method_request: PUT my-index-000001/_create/1 | ||
description: > | ||
Run `PUT my-index-000001/_create/1` to index a document into the `my-index-000001` index if no document with that ID exists. | ||
# type: request | ||
value: |- | ||
{ | ||
"@timestamp": "2099-11-15T13:12:00", | ||
"message": "GET /search HTTP/1.1 200 1070000", | ||
"user": { | ||
"id": "kimchy" | ||
} | ||
} |
Oops, something went wrong.