Skip to content

Commit

Permalink
Added test for POST /_mget.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock committed Nov 25, 2024
1 parent c51aa2e commit 04d5cea
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion tests/default/_core/mget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ prologues:
- {create: {_index: movies, _id: movie2}}
- {director: Nicolas Winding Refn, title: Drive, year: 1960}
chapters:
- synopsis: Retrieve documents from multiple indexes.
- synopsis: Retrieve documents from multiple indexes (GET).
path: /_mget
method: GET
request:
Expand All @@ -45,3 +45,21 @@ chapters:
_id: movie1
- _index: books
_id: book1
- synopsis: Retrieve documents from multiple indexes (POST).
path: /_mget
method: POST
request:
payload:
docs:
- _index: books
_id: book1
- _index: movies
_id: movie1
response:
status: 200
payload:
docs:
- _index: books
_id: book1
- _index: movies
_id: movie1

0 comments on commit 04d5cea

Please sign in to comment.