-
Notifications
You must be signed in to change notification settings - Fork 162
ESQL: Update text formats documentation #2307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
9b9e6a0
8e376d7
9b7e41d
f5293c0
88a63b1
40ad777
72b0a18
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -64,15 +64,21 @@ POST /_query?format=txt | |||||
The URL parameter takes precedence over the HTTP headers. If neither is specified then the response is returned in the same format as the request. | ||||||
:::: | ||||||
|
||||||
::::{tip} | ||||||
In the "Tabular" formats, only the resulting data will be returned. Other response fields will be missing. | ||||||
Use them when you want a quick view of the results. | ||||||
|
||||||
:::: | ||||||
|
||||||
|
||||||
| `format` | HTTP header | Description | | ||||||
| --- | --- | --- | | ||||||
| Human readable | | ||||||
| `csv` | `text/csv` | [Comma-separated values](https://en.wikipedia.org/wiki/Comma-separated_values) | | ||||||
| Structured | | ||||||
| `json` | `application/json` | [JSON](https://www.json.org/) (JavaScript Object Notation) human-readable format | | ||||||
| `yaml` | `application/yaml` | [YAML](https://en.wikipedia.org/wiki/YAML) (YAML Ain’t Markup Language) human-readable format | | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
nit: not sure if it's useful to provide the recursive acronym 😄 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also don't think it adds much, but we have it in every other format, so I'd say to keep it, even if just for normalization and flavor 👀 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nothing wrong with a bit of flavor 🫡 |
||||||
| Tabular | | ||||||
| `csv` | `text/csv` | [Comma-separated values](https://en.wikipedia.org/wiki/Comma-separated_values) | | ||||||
| `tsv` | `text/tab-separated-values` | [Tab-separated values](https://en.wikipedia.org/wiki/Tab-separated_values) | | ||||||
| `txt` | `text/plain` | CLI-like representation | | ||||||
| `yaml` | `application/yaml` | [YAML](https://en.wikipedia.org/wiki/YAML) (YAML Ain’t Markup Language) human-readable format | | ||||||
| Binary | | ||||||
| `cbor` | `application/cbor` | [Concise Binary Object Representation](https://cbor.io/) | | ||||||
| `smile` | `application/smile` | [Smile](https://en.wikipedia.org/wiki/Smile_(data_interchange_format)) binary data format similarto CBOR | | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.