public class Reader extends Object
| 构造器和说明 |
|---|
Reader(io.swagger.models.Swagger swagger) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
extractOperationMethod(io.swagger.annotations.ApiOperation apiOperation,
Method method,
Iterator<SwaggerExtension> chain) |
protected Set<String> |
extractTags(io.swagger.annotations.Api api) |
protected String |
getOperationId(String operationId) |
protected Class<?> |
getSubResource(Method method) |
io.swagger.models.Swagger |
getSwagger() |
io.swagger.models.Operation |
parseMethod(Method method) |
io.swagger.models.Swagger |
read(Class<?> cls)
Scans a single class for Swagger annotations - does not invoke
ReaderListeners
|
protected io.swagger.models.Swagger |
read(Class<?> cls,
Map<String,io.swagger.models.Tag> parentTags,
List<io.swagger.models.parameters.Parameter> parentParameters) |
io.swagger.models.Swagger |
read(Set<Class<?>> classes)
Scans a set of classes for both ReaderListeners and Swagger annotations.
|
protected io.swagger.models.parameters.Parameter |
readImplicitParam(io.swagger.annotations.ApiImplicitParam param) |
protected void |
readInfoConfig(io.swagger.annotations.SwaggerDefinition config) |
protected void |
readSwaggerConfig(Class<?> cls,
io.swagger.annotations.SwaggerDefinition config) |
public io.swagger.models.Swagger getSwagger()
public io.swagger.models.Swagger read(Set<Class<?>> classes)
classes - a set of classes to scanpublic io.swagger.models.Swagger read(Class<?> cls)
protected io.swagger.models.Swagger read(Class<?> cls, Map<String,io.swagger.models.Tag> parentTags, List<io.swagger.models.parameters.Parameter> parentParameters)
protected io.swagger.models.parameters.Parameter readImplicitParam(io.swagger.annotations.ApiImplicitParam param)
protected void readSwaggerConfig(Class<?> cls, io.swagger.annotations.SwaggerDefinition config)
protected void readInfoConfig(io.swagger.annotations.SwaggerDefinition config)
public io.swagger.models.Operation parseMethod(Method method)
public String extractOperationMethod(io.swagger.annotations.ApiOperation apiOperation, Method method, Iterator<SwaggerExtension> chain)
Copyright © 2019. All rights reserved.