-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for application/yaml response payloads. (#363)
* Added application/yaml support and responses to cat APIs. Signed-off-by: dblock <[email protected]> * Corrected /_cat/indices response schema. Signed-off-by: dblock <[email protected]> * Removed an unevaluate property. Signed-off-by: dblock <[email protected]> --------- Signed-off-by: dblock <[email protected]> Signed-off-by: Theo Nam Truong <[email protected]> Co-authored-by: Theo Nam Truong <[email protected]>
- Loading branch information
Showing
11 changed files
with
203 additions
and
12 deletions.
There are no files selected for viewing
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
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
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,72 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test cat/indices endpoints. | ||
prologues: | ||
- path: /{index} | ||
method: PUT | ||
parameters: | ||
index: books | ||
request_body: | ||
payload: {} | ||
epilogues: | ||
- path: /books | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Cat with a default text response. | ||
method: GET | ||
path: /_cat/indices | ||
response: | ||
status: 200 | ||
content_type: text/plain | ||
- synopsis: Cat with verbose output (v=true). | ||
method: GET | ||
path: /_cat/indices | ||
parameters: | ||
v: true | ||
response: | ||
status: 200 | ||
content_type: text/plain | ||
- synopsis: Cat with headers (h=header1,header2). | ||
method: GET | ||
path: /_cat/indices | ||
parameters: | ||
h: | ||
- health | ||
- status | ||
response: | ||
status: 200 | ||
content_type: text/plain | ||
- synopsis: Cat displaying all available headers (help=true). | ||
method: GET | ||
path: /_cat/indices | ||
parameters: | ||
help: true | ||
response: | ||
status: 200 | ||
content_type: text/plain | ||
- synopsis: Cat with sorted results. | ||
method: GET | ||
path: /_cat/indices | ||
parameters: | ||
s: | ||
- status | ||
response: | ||
status: 200 | ||
content_type: text/plain | ||
- synopsis: Cat in different formats (format=json). | ||
method: GET | ||
path: /_cat/indices | ||
parameters: | ||
format: json | ||
response: | ||
status: 200 | ||
content_type: application/json | ||
- synopsis: Cat in different formats (format=yaml). | ||
method: GET | ||
path: /_cat/indices | ||
parameters: | ||
format: yaml | ||
response: | ||
status: 200 | ||
content_type: application/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
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
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
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