Skip to content

Cluster state response strongly typed #1791

@todvora

Description

@todvora

Is your feature request related to a problem?

Currently the call to client.cluster().state() returns a StateResponse, which is just a wrapper around JsonData. This means that there are no actual types in the response and I have to parse the json response on my own. This would make sense in a low level rest client, but feels out of place in this strongly typed high level java client.

What solution would you like?

Having properly formatted and typed response for cluster().state() calls.

What alternatives have you considered?

I am now parsing the json response on my own, which works but doesn't make much sense here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions