Class ClientYamlSuiteRestApi
- java.lang.Object
-
- org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
-
public class ClientYamlSuiteRestApi extends java.lang.ObjectSpecification of an Elasticsearch endpoint used by the YAML specs to generate REST requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientYamlSuiteRestApi.Bodystatic classClientYamlSuiteRestApi.Stability
-
Method Summary
Modifier and Type Method Description ClientYamlSuiteRestPath[]getFinalPaths(java.util.Map<java.lang.String,java.lang.String> pathParams)Finds the best matching rest path given the current parameters and replaces placeholders with their corresponding values received as argumentsjava.lang.StringgetLocation()java.util.List<java.lang.String>getMethods()java.lang.StringgetName()java.util.Map<java.lang.String,java.lang.Boolean>getParams()Gets all parameters supported by the api.java.util.Map<java.lang.String,java.lang.Boolean>getPathParts()Gets all path parts supported by the api.java.util.List<java.lang.String>getPaths()ClientYamlSuiteRestApi.StabilitygetStability()java.util.List<java.lang.String>getSupportedMethods(java.util.Set<java.lang.String> restParams)Returns the supported http methods given the rest parameters providedbooleanisBodyRequired()booleanisBodySupported()voidsetStability(java.lang.String stability)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getLocation
public java.lang.String getLocation()
-
getMethods
public java.util.List<java.lang.String> getMethods()
-
getSupportedMethods
public java.util.List<java.lang.String> getSupportedMethods(java.util.Set<java.lang.String> restParams)
Returns the supported http methods given the rest parameters provided
-
getPaths
public java.util.List<java.lang.String> getPaths()
-
getPathParts
public java.util.Map<java.lang.String,java.lang.Boolean> getPathParts()
Gets all path parts supported by the api. For every path part defines if it is required or optional.
-
getParams
public java.util.Map<java.lang.String,java.lang.Boolean> getParams()
Gets all parameters supported by the api. For every parameter defines if it is required or optional.
-
isBodySupported
public boolean isBodySupported()
-
isBodyRequired
public boolean isBodyRequired()
-
setStability
public void setStability(java.lang.String stability)
-
getStability
public ClientYamlSuiteRestApi.Stability getStability()
-
getFinalPaths
public ClientYamlSuiteRestPath[] getFinalPaths(java.util.Map<java.lang.String,java.lang.String> pathParams)
Finds the best matching rest path given the current parameters and replaces placeholders with their corresponding values received as arguments
-
-