forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
source.yaml
52 lines (51 loc) · 1.12 KB
/
source.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
$schema: ../../../json_schemas/test_story.schema.yaml
description: Test retrieving a document source.
epilogues:
- path: /movies
method: DELETE
status: [200, 404]
prologues:
- path: /movies/_doc/1
method: POST
parameters:
refresh: true
request:
payload:
title: Beauty and the Beast
year: 1991
chapters:
- synopsis: Retrieve the document source.
path: /{index}/_source/{id}
method: GET
parameters:
index: movies
id: '1'
response:
status: 200
payload:
title: Beauty and the Beast
year: 1991
- synopsis: Retrieve a non-existent document source.
path: /{index}/_source/{id}
method: GET
parameters:
index: movies
id: '2'
response:
status: 404
- synopsis: Check whether the document exists.
path: /{index}/_source/{id}
method: HEAD
parameters:
index: movies
id: '1'
response:
status: 200
- synopsis: Check whether the document exists.
path: /{index}/_source/{id}
method: HEAD
parameters:
index: movies
id: '2'
response:
status: 404