Skip to content
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

Add Verify Repository High Level REST API #30662

Closed
wants to merge 1 commit into from

Commits on May 16, 2018

  1. Add Verify Repository High Level REST API

    This commit adds Verify Repository, the associated docs and tests for
    the high level REST API client. One thing to note is the addition of a
    class to handle deserializing the XContent into something that is usable
    by the REST client. Prior to this, the VerifyRepositoryResponse handled
    both transport and REST actions. This did not work because the transport
    client was using an array of DiscoveryNode objects, whereas the REST API
    was only seeing a representation of these, the node id and node
    name. Instead of returning an object that the REST client could not
    use, a new VerifyRepositoryRestResponse was created, so that it could
    return an actual class representation of the data returned, as well as
    could have a reasonable ObjectParser instead of custom fromXContent.
    
    Relates elastic#27205
    hub-cap committed May 16, 2018
    Configuration menu
    Copy the full SHA
    c9b828a View commit details
    Browse the repository at this point in the history