Package io.swagger.codegen
Class CodegenOperation
- java.lang.Object
-
- io.swagger.codegen.CodegenOperation
-
public class CodegenOperation extends Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CodegenOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
boolean
getHasBodyParam()
Check if there's at least one body parameterboolean
getHasExamples()
Check if there's at least one example parameterboolean
getHasFormParams()
Check if there's at least one form parameterboolean
getHasHeaderParams()
Check if there's at least one header parameterboolean
getHasPathParams()
Check if there's at least one path parameterboolean
getHasQueryParams()
Check if there's at least one query parameterint
hashCode()
boolean
isBodyAllowed()
Check if body param is allowed for the request methodboolean
isRestful()
Check if Restful-styleboolean
isRestfulCreate()
Check if act as Restful create methodboolean
isRestfulDestroy()
Check if act as Restful destroy methodboolean
isRestfulIndex()
Check if act as Restful index methodboolean
isRestfulShow()
Check if act as Restful show methodboolean
isRestfulUpdate()
Check if act as Restful update methodString
toString()
-
-
-
Field Detail
-
responseHeaders
public final List<CodegenProperty> responseHeaders
-
hasAuthMethods
public boolean hasAuthMethods
-
hasConsumes
public boolean hasConsumes
-
hasProduces
public boolean hasProduces
-
hasParams
public boolean hasParams
-
hasOptionalParams
public boolean hasOptionalParams
-
hasRequiredParams
public boolean hasRequiredParams
-
returnTypeIsPrimitive
public boolean returnTypeIsPrimitive
-
returnSimpleType
public boolean returnSimpleType
-
subresourceOperation
public boolean subresourceOperation
-
isMapContainer
public boolean isMapContainer
-
isListContainer
public boolean isListContainer
-
isMultipart
public boolean isMultipart
-
hasMore
public boolean hasMore
-
isResponseBinary
public boolean isResponseBinary
-
isResponseFile
public boolean isResponseFile
-
hasReference
public boolean hasReference
-
isRestfulIndex
public boolean isRestfulIndex
-
isRestfulShow
public boolean isRestfulShow
-
isRestfulCreate
public boolean isRestfulCreate
-
isRestfulUpdate
public boolean isRestfulUpdate
-
isRestfulDestroy
public boolean isRestfulDestroy
-
isRestful
public boolean isRestful
-
isDeprecated
public boolean isDeprecated
-
path
public String path
-
testPath
public String testPath
-
operationId
public String operationId
-
returnType
public String returnType
-
httpMethod
public String httpMethod
-
returnBaseType
public String returnBaseType
-
returnContainer
public String returnContainer
-
summary
public String summary
-
unescapedNotes
public String unescapedNotes
-
notes
public String notes
-
baseName
public String baseName
-
defaultResponse
public String defaultResponse
-
discriminator
public String discriminator
-
bodyParam
public CodegenParameter bodyParam
-
allParams
public List<CodegenParameter> allParams
-
bodyParams
public List<CodegenParameter> bodyParams
-
pathParams
public List<CodegenParameter> pathParams
-
queryParams
public List<CodegenParameter> queryParams
-
headerParams
public List<CodegenParameter> headerParams
-
formParams
public List<CodegenParameter> formParams
-
requiredParams
public List<CodegenParameter> requiredParams
-
authMethods
public List<CodegenSecurity> authMethods
-
tags
public List<io.swagger.models.Tag> tags
-
responses
public List<CodegenResponse> responses
-
externalDocs
public io.swagger.models.ExternalDocs externalDocs
-
nickname
public String nickname
-
operationIdOriginal
public String operationIdOriginal
-
operationIdLowerCase
public String operationIdLowerCase
-
operationIdCamelCase
public String operationIdCamelCase
-
operationIdSnakeCase
public String operationIdSnakeCase
-
-
Method Detail
-
getHasBodyParam
public boolean getHasBodyParam()
Check if there's at least one body parameter- Returns:
- true if body parameter exists, false otherwise
-
getHasQueryParams
public boolean getHasQueryParams()
Check if there's at least one query parameter- Returns:
- true if query parameter exists, false otherwise
-
getHasHeaderParams
public boolean getHasHeaderParams()
Check if there's at least one header parameter- Returns:
- true if header parameter exists, false otherwise
-
getHasPathParams
public boolean getHasPathParams()
Check if there's at least one path parameter- Returns:
- true if path parameter exists, false otherwise
-
getHasFormParams
public boolean getHasFormParams()
Check if there's at least one form parameter- Returns:
- true if any form parameter exists, false otherwise
-
getHasExamples
public boolean getHasExamples()
Check if there's at least one example parameter- Returns:
- true if examples parameter exists, false otherwise
-
isRestfulIndex
public boolean isRestfulIndex()
Check if act as Restful index method- Returns:
- true if act as Restful index method, false otherwise
-
isRestfulShow
public boolean isRestfulShow()
Check if act as Restful show method- Returns:
- true if act as Restful show method, false otherwise
-
isRestfulCreate
public boolean isRestfulCreate()
Check if act as Restful create method- Returns:
- true if act as Restful create method, false otherwise
-
isRestfulUpdate
public boolean isRestfulUpdate()
Check if act as Restful update method- Returns:
- true if act as Restful update method, false otherwise
-
isBodyAllowed
public boolean isBodyAllowed()
Check if body param is allowed for the request method- Returns:
- true request method is PUT, PATCH or POST; false otherwise
-
isRestfulDestroy
public boolean isRestfulDestroy()
Check if act as Restful destroy method- Returns:
- true if act as Restful destroy method, false otherwise
-
isRestful
public boolean isRestful()
Check if Restful-style- Returns:
- true if Restful-style, false otherwise
-
-