Skip to content

[FEATURE] Ability to execute _cat/* API without JSON response #167

@fbaligand

Description

@fbaligand

Is your feature request related to a problem? Please describe.
Currently, if I execute GET _cat/indices?v query in Dockit, I get a JSON response.
I would like to have the default format (flat text), or ability to get the default flat text response.

Describe the solution you'd like
It seems that queries launched by Dockit force the response to be a JSON content, probably using "Accept: application/json" request header.
The better way to fix the issue would to be to not send "Accept: application/json" request header.

Additional context
If I execute GET _cat/indices?v query, I would like an answer like this:

health status index                                                              uuid                   pri rep docs.count docs.deleted store.size pri.store.size dataset.size
green  open   .internal.alerts-transform.health.alerts-default-000001            lpmWHQIPTTemQmXLnVSOXg   1   0          0            0       249b           249b         249b
green  open   .internal.alerts-observability.logs.alerts-default-000001          Z0lgx7CDSJeQQAK3N-5W-A   1   0          0            0       249b           249b         249b

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions