public final class ClientYamlDocsTestClient extends ClientYamlTestClient
RestClient
instance used to send the REST requests. Holds the ClientYamlSuiteRestSpec
used to translate api calls into
REST calls. Supports raw requests besides the usual api calls based on the rest spec.restClient
Constructor | Description |
---|---|
ClientYamlDocsTestClient(ClientYamlSuiteRestSpec restSpec,
RestClient restClient,
java.util.List<org.apache.http.HttpHost> hosts,
Version esVersion) |
Modifier and Type | Method | Description |
---|---|---|
ClientYamlTestResponse |
callApi(java.lang.String apiName,
java.util.Map<java.lang.String,java.lang.String> params,
org.apache.http.HttpEntity entity,
java.util.Map<java.lang.String,java.lang.String> headers) |
Calls an api with the provided parameters and body
|
getEsVersion
public ClientYamlDocsTestClient(ClientYamlSuiteRestSpec restSpec, RestClient restClient, java.util.List<org.apache.http.HttpHost> hosts, Version esVersion) throws java.io.IOException
java.io.IOException
public ClientYamlTestResponse callApi(java.lang.String apiName, java.util.Map<java.lang.String,java.lang.String> params, org.apache.http.HttpEntity entity, java.util.Map<java.lang.String,java.lang.String> headers) throws java.io.IOException
ClientYamlTestClient
callApi
in class ClientYamlTestClient
java.io.IOException