forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases.yaml
42 lines (41 loc) · 906 Bytes
/
aliases.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
$schema: ../../../../json_schemas/test_story.schema.yaml
description: Test aliases endpoints.
epilogues:
- path: /games
method: DELETE
status: [200, 404]
prologues:
- path: games
method: PUT
chapters:
- synopsis: Create an alias.
path: /{index}/_aliases/{name}
method: PUT
parameters:
index: games
name: jeux
- synopsis: Multiple alias operations.
path: /_aliases
method: POST
request:
payload:
actions:
- remove:
index: games
alias: jeux
- add:
index: games
alias: plays1
- add:
index: games
alias: plays2
response:
status: 200
payload:
acknowledged: true
- synopsis: Delete an alias.
path: /{index}/_aliases/{name}
method: DELETE
parameters:
index: games
name: plays1