Package io.jpostman.schema.model
Class ApiOperation
- java.lang.Object
-
- io.jpostman.schema.model.ApiOperation
-
public class ApiOperation extends Object
Represents one normalized API operation parsed from OpenAPI, Swagger, Postman, or GraphQL.
-
-
Constructor Summary
Constructors Constructor Description ApiOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAllowedMethods()Returns the allowed methods.ApiAuthgetAuth()Returns the auth.ApiBodygetBody()Returns the body.StringgetDescription()Returns the description.ApiExamplegetExample()Returns the example.StringgetFolder()Returns the folder.StringgetGraphQlOperationType()Returns the graph ql operation type.List<ApiHeader>getHeaders()Returns the headers.StringgetMethod()Returns the method.StringgetMethodName()Returns the method name.StringgetName()Returns the display name.StringgetPath()Returns the path.ApiProtocolgetProtocol()Returns the protocol.List<ApiParam>getQueryParams()Returns the query params.List<ApiResponse>getResponses()Returns the responses.booleanisUrlResolved()Returns whether url resolved is enabled or true.voidsetAllowedMethods(List<String> allowedMethods)Sets the allowed methods.voidsetAuth(ApiAuth auth)Sets the auth.voidsetBody(ApiBody body)Sets the body.voidsetDescription(String description)Sets the description.voidsetExample(ApiExample example)Sets the example.voidsetFolder(String folder)Sets the folder.voidsetGraphQlOperationType(String graphQlOperationType)Sets the graph ql operation type.voidsetHeaders(List<ApiHeader> headers)Sets the headers.voidsetMethod(String method)Sets the method.voidsetMethodName(String methodName)Sets the method name.voidsetName(String name)Sets the display name.voidsetPath(String path)Sets the path.voidsetProtocol(ApiProtocol protocol)Sets the protocol.voidsetQueryParams(List<ApiParam> queryParams)Sets the query params.voidsetResponses(List<ApiResponse> responses)Sets the responses.voidsetUrlResolved(boolean urlResolved)Sets the url resolved.
-
-
-
Method Detail
-
getFolder
public String getFolder()
Returns the folder.
-
setFolder
public void setFolder(String folder)
Sets the folder.
-
getName
public String getName()
Returns the display name.
-
setName
public void setName(String name)
Sets the display name.
-
getMethodName
public String getMethodName()
Returns the method name.
-
setMethodName
public void setMethodName(String methodName)
Sets the method name.
-
getDescription
public String getDescription()
Returns the description.
-
setDescription
public void setDescription(String description)
Sets the description.
-
getMethod
public String getMethod()
Returns the method.
-
setMethod
public void setMethod(String method)
Sets the method.
-
setAllowedMethods
public void setAllowedMethods(List<String> allowedMethods)
Sets the allowed methods.
-
getPath
public String getPath()
Returns the path.
-
setPath
public void setPath(String path)
Sets the path.
-
getBody
public ApiBody getBody()
Returns the body.
-
setBody
public void setBody(ApiBody body)
Sets the body.
-
getAuth
public ApiAuth getAuth()
Returns the auth.
-
setAuth
public void setAuth(ApiAuth auth)
Sets the auth.
-
getExample
public ApiExample getExample()
Returns the example.
-
setExample
public void setExample(ApiExample example)
Sets the example.
-
getResponses
public List<ApiResponse> getResponses()
Returns the responses.
-
setResponses
public void setResponses(List<ApiResponse> responses)
Sets the responses.
-
getProtocol
public ApiProtocol getProtocol()
Returns the protocol.
-
setProtocol
public void setProtocol(ApiProtocol protocol)
Sets the protocol.
-
getGraphQlOperationType
public String getGraphQlOperationType()
Returns the graph ql operation type.
-
setGraphQlOperationType
public void setGraphQlOperationType(String graphQlOperationType)
Sets the graph ql operation type.
-
isUrlResolved
public boolean isUrlResolved()
Returns whether url resolved is enabled or true.
-
setUrlResolved
public void setUrlResolved(boolean urlResolved)
Sets the url resolved.
-
-