Class ClientYamlSuiteRestApi
- java.lang.Object
-
- org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi
-
public class ClientYamlSuiteRestApi extends java.lang.Object
Specification of an Elasticsearch endpoint used by the YAML specs to generate REST requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientYamlSuiteRestApi.Body
-
Method Summary
All Methods Instance Methods Concrete Methods 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.String
getLocation()
java.util.List<java.lang.String>
getMethods()
java.lang.String
getName()
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()
java.util.List<java.lang.String>
getSupportedMethods(java.util.Set<java.lang.String> restParams)
Returns the supported http methods given the rest parameters providedboolean
isBodyRequired()
boolean
isBodySupported()
-
-
-
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()
-
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
-
-