Skip to content

Commit

Permalink
Create a doc without an ID.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Jun 10, 2024
1 parent e4de666 commit 7a69401
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/_core/index/_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ epilogues:
method: DELETE
status: [200, 404]
chapters:
- synopsis: Create a document.
path: /{index}/_doc
method: POST
parameters:
index: movies
request_body:
payload:
title: Beauty and the Beast
year: 1991
response:
status: 201
- synopsis: Create a document.
path: /{index}/_doc/{id}
method: POST
Expand All @@ -15,7 +26,7 @@ chapters:
id: '1'
request_body:
payload:
title: Beauty and the Beast
title: Beauty and the Beast (Id)
year: 1991
response:
status: 201
Expand Down

0 comments on commit 7a69401

Please sign in to comment.