Skip to content

Support YAML in Dev Tools -> Console #28754

@ypid-geberit

Description

@ypid-geberit

Describe the feature: Most APIs of Elasticsearch support YAML requests and ES can send responses also in YAML. Please consider supporting it also in Dev Tools -> Console. For completeness, "raw" filter blocks ("Edit Query DSL") should then also support YAML.

Describe a specific use case for the feature:

Stages of implementation

  • Basic support to accept YAML as request. (ES supports this so you just need to set the Content-Type: application/yaml in the request. ES will then also answer YAML encoded.)
  • Folding support.
  • Optional, might be out of scope: Conversion between YAML and JSON in the Console to have the best of both worlds.
  • Request completion.

Example:

GET index/_search
---

size: 5

_source:
  - 'license'
  - 'name'

query:
  query_string:
    query: '+license:("GPL-3.0-only" OR "AGPL-3.0-only")'
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:ConsoleDev Tools Console FeatureFeature:Dev ToolsTeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//enhancementNew value added to drive a business result

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions