public class Reader extends Object
Constructor and Description |
---|
Reader(Swagger swagger) |
Reader(Swagger swagger,
ReaderConfig config) |
Modifier and Type | Method and Description |
---|---|
String |
extractOperationMethod(ApiOperation apiOperation,
Method method,
Iterator<SwaggerExtension> chain) |
protected Set<String> |
extractTags(Api api) |
ReaderConfig |
getConfig() |
protected Class<?> |
getSubResource(Method method) |
protected Class<?> |
getSubResourceWithJaxRsSubresourceLocatorSpecs(Method method) |
Swagger |
getSwagger() |
Operation |
parseMethod(Method method) |
Swagger |
read(Class<?> cls)
Scans a single class for Swagger annotations - does not invoke ReaderListeners
|
protected Swagger |
read(Class<?> cls,
String parentPath,
String parentMethod,
boolean isSubresource,
String[] parentConsumes,
String[] parentProduces,
Map<String,Tag> parentTags,
List<Parameter> parentParameters) |
Swagger |
read(Set<Class<?>> classes)
Scans a set of classes for both ReaderListeners and Swagger annotations.
|
protected Parameter |
readImplicitParam(ApiImplicitParam param) |
protected void |
readInfoConfig(SwaggerDefinition config) |
protected void |
readSwaggerConfig(Class<?> cls,
SwaggerDefinition config) |
public Reader(Swagger swagger)
public Reader(Swagger swagger, ReaderConfig config)
public Swagger getSwagger()
public Swagger read(Set<Class<?>> classes)
classes
- a set of classes to scanpublic Swagger read(Class<?> cls)
protected Swagger read(Class<?> cls, String parentPath, String parentMethod, boolean isSubresource, String[] parentConsumes, String[] parentProduces, Map<String,Tag> parentTags, List<Parameter> parentParameters)
protected Parameter readImplicitParam(ApiImplicitParam param)
protected void readSwaggerConfig(Class<?> cls, SwaggerDefinition config)
protected void readInfoConfig(SwaggerDefinition config)
protected Class<?> getSubResourceWithJaxRsSubresourceLocatorSpecs(Method method)
public String extractOperationMethod(ApiOperation apiOperation, Method method, Iterator<SwaggerExtension> chain)
public ReaderConfig getConfig()
Copyright © 2017. All rights reserved.