| 构造器和说明 |
|---|
SwaggerApiUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static javassist.bytecode.annotation.Annotation |
annotApi(javassist.bytecode.ConstPool constPool,
String... tags)
构造 @Api 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiIgnore(javassist.bytecode.ConstPool constPool,
String desc)
构造 @ApiIgnore 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiImplicitParams(javassist.bytecode.ConstPool constPool,
MvcApiImplicitParam... apiImplicitParams)
构造 @ApiImplicitParams 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiKeyAuthDefinition(javassist.bytecode.ConstPool constPool,
String name,
String key,
String desc,
io.swagger.annotations.ApiKeyAuthDefinition.ApiKeyLocation in)
构造 @ApiKeyAuthDefinition 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes)
构造 @ApiOperation 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
Class<?> response)
构造 @ApiOperation 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
String[] tags,
Class<?> response)
构造 @ApiOperation 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
String[] tags,
Class<?> response,
String responseContainer)
构造 @ApiOperation 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
String[] tags,
Class<?> response,
String responseContainer,
String responseReference)
构造 @ApiOperation 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
String[] tags,
Class<?> response,
String responseContainer,
String responseReference,
String httpMethod,
String nickname,
String produces,
String consumes,
String protocols)
构造 @ApiOperation 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
String[] tags,
Class<?> response,
String responseContainer,
String responseReference,
String httpMethod,
String nickname,
String produces,
String consumes,
String protocols,
boolean hidden,
int code,
boolean ignoreJsonView)
构造 @ApiOperation 注解
|
static javassist.bytecode.annotation.Annotation |
annotApiResponses(javassist.bytecode.ConstPool constPool,
MvcApiResponse... apiResponses)
构造 @ApiResponses 注解
|
public static javassist.bytecode.annotation.Annotation annotApi(javassist.bytecode.ConstPool constPool,
String... tags)
constPool - ConstPool instancetags - 标签名称Annotation instancepublic static javassist.bytecode.annotation.Annotation annotApiIgnore(javassist.bytecode.ConstPool constPool,
String desc)
constPool - ConstPool instancedesc - 描述标签Annotation instancepublic static javassist.bytecode.annotation.Annotation annotApiKeyAuthDefinition(javassist.bytecode.ConstPool constPool,
String name,
String key,
String desc,
io.swagger.annotations.ApiKeyAuthDefinition.ApiKeyLocation in)
constPool - ConstPool instancename - The name of the header or query parameter to be used.key - Key used to refer to this security definitiondesc - A short description for security scheme.in - The location of the API key. Valid values are "query" or "header"Annotation instancepublic static javassist.bytecode.annotation.Annotation annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes)
constPool - ConstPool instancevalue - Provides a brief description of this operation.
Should be 120 characters or less for proper
visibility in Swagger-UI.notes - A verbose description of the operation.Annotation instancepublic static javassist.bytecode.annotation.Annotation annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
Class<?> response)
constPool - ConstPool instancevalue - Provides a brief description of this operation.
Should be 120 characters or less for proper
visibility in Swagger-UI.notes - A verbose description of the operation.response - The response type of the operation. If the value
used is a class representing a primitive
(Integer, Long, ...) the
corresponding primitive type will be used.Annotation instancepublic static javassist.bytecode.annotation.Annotation annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
String[] tags,
Class<?> response)
constPool - ConstPool instancevalue - Provides a brief description of this operation.
Should be 120 characters or less for proper
visibility in Swagger-UI.notes - A verbose description of the operation.tags - A list of tags for API documentation control.response - The response type of the operation. If the value
used is a class representing a primitive
(Integer, Long, ...) the
corresponding primitive type will be used.Annotation instancepublic static javassist.bytecode.annotation.Annotation annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
String[] tags,
Class<?> response,
String responseContainer)
constPool - ConstPool instancevalue - Provides a brief description of this operation.
Should be 120 characters or less for proper
visibility in Swagger-UI.notes - A verbose description of the operation.tags - A list of tags for API documentation control.response - The response type of the operation. If the value
used is a class representing a primitive
(Integer, Long, ...) the
corresponding primitive type will be used.responseContainer - Declares a container wrapping the response. Valid
values are "List", "Set" or "Map". Any other value
will be ignored.Annotation instancepublic static javassist.bytecode.annotation.Annotation annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
String[] tags,
Class<?> response,
String responseContainer,
String responseReference)
constPool - ConstPool instancevalue - Provides a brief description of this operation.
Should be 120 characters or less for proper
visibility in Swagger-UI.notes - A verbose description of the operation.tags - A list of tags for API documentation control.response - The response type of the operation. If the value
used is a class representing a primitive
(Integer, Long, ...) the
corresponding primitive type will be used.responseContainer - Declares a container wrapping the response. Valid
values are "List", "Set" or "Map". Any other value
will be ignored.responseReference - Specifies a reference to the response type. The
specified reference can be either local or remote
and will be used as-is, and will override any
specified response() class.Annotation instancepublic static javassist.bytecode.annotation.Annotation annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
String[] tags,
Class<?> response,
String responseContainer,
String responseReference,
String httpMethod,
String nickname,
String produces,
String consumes,
String protocols)
constPool - ConstPool instancevalue - Provides a brief description of this operation.
Should be 120 characters or less for proper
visibility in Swagger-UI.notes - A verbose description of the operation.tags - A list of tags for API documentation control.response - The response type of the operation. If the value
used is a class representing a primitive
(Integer, Long, ...) the
corresponding primitive type will be used.responseContainer - Declares a container wrapping the response. Valid
values are "List", "Set" or "Map". Any other value
will be ignored.responseReference - Specifies a reference to the response type. The
specified reference can be either local or remote
and will be used as-is, and will override any
specified response() class.httpMethod - Corresponds to the `method` field as the HTTP method
used. Acceptable values are "GET", "HEAD", "POST",
"PUT", "DELETE", "OPTIONS" and "PATCH".nickname - The operationId is used by third-party tools to
uniquely identify this operation. In Swagger 2.0,
this is no longer mandatory and if not provided will
remain empty.produces - Takes in comma-separated values of content types.
For example, "application/json, application/xml"
would suggest this operation generates JSON and XML
output.consumes - Takes in comma-separated values of content types.
For example, "application/json, application/xml"
would suggest this API Resource accepts JSON and XML
input.protocols - Sets specific protocols (schemes) for this
operation. Comma-separated values of the available
protocols. Possible values: http, https, ws, wss.Annotation instancepublic static javassist.bytecode.annotation.Annotation annotApiOperation(javassist.bytecode.ConstPool constPool,
String value,
String notes,
String[] tags,
Class<?> response,
String responseContainer,
String responseReference,
String httpMethod,
String nickname,
String produces,
String consumes,
String protocols,
boolean hidden,
int code,
boolean ignoreJsonView)
constPool - ConstPool instancevalue - Provides a brief description of this operation.
Should be 120 characters or less for proper
visibility in Swagger-UI.notes - A verbose description of the operation.tags - A list of tags for API documentation control.response - The response type of the operation. If the value
used is a class representing a primitive
(Integer, Long, ...) the
corresponding primitive type will be used.responseContainer - Declares a container wrapping the response. Valid
values are "List", "Set" or "Map". Any other value
will be ignored.responseReference - Specifies a reference to the response type. The
specified reference can be either local or remote
and will be used as-is, and will override any
specified response() class.httpMethod - Corresponds to the `method` field as the HTTP method
used. Acceptable values are "GET", "HEAD", "POST",
"PUT", "DELETE", "OPTIONS" and "PATCH".nickname - The operationId is used by third-party tools to
uniquely identify this operation. In Swagger 2.0,
this is no longer mandatory and if not provided will
remain empty.produces - Takes in comma-separated values of content types.
For example, "application/json, application/xml"
would suggest this operation generates JSON and XML
output.consumes - Takes in comma-separated values of content types.
For example, "application/json, application/xml"
would suggest this API Resource accepts JSON and XML
input.protocols - Sets specific protocols (schemes) for this
operation. Comma-separated values of the available
protocols. Possible values: http, https, ws, wss.hidden - Hides the operation from the list of operations.code - The HTTP status code of the response.ignoreJsonView - Ignores JsonView annotations while resolving
operations and types. For backward compatibilityAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotApiImplicitParams(javassist.bytecode.ConstPool constPool,
MvcApiImplicitParam... apiImplicitParams)
constPool - : ConstPool instanceapiImplicitParams - : MvcApiImplicitParam array instanceAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotApiResponses(javassist.bytecode.ConstPool constPool,
MvcApiResponse... apiResponses)
constPool - : ConstPool instanceapiResponses - : MvcApiResponse array instanceAnnotation instanceCopyright © 2019. All rights reserved.