com.github.kongchen.swagger.docgen.spring
类 SpringMvcApiReader
java.lang.Object
com.github.kongchen.swagger.docgen.spring.SpringMvcApiReader
public class SpringMvcApiReader
- extends Object
- 作者:
- tedleman
The use-goal of this object is to return an ApiListing object from the read() method.
The listing object is populated with other api objects, contained by ApiDescriptions
Generation Order:
ApiListing ==> ApiDescriptions ==> Operations ==> Parameters
==> ResponseMessages
Models are generated as they are detected and ModelReferences are added for each
|
方法摘要 |
com.wordnik.swagger.model.ApiListing |
read(SpringResource resource,
com.wordnik.swagger.config.SwaggerConfig swaggerConfig)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringMvcApiReader
public SpringMvcApiReader(ApiSource aSource,
com.wordnik.swagger.converter.OverrideConverter overrideConverter)
read
public com.wordnik.swagger.model.ApiListing read(SpringResource resource,
com.wordnik.swagger.config.SwaggerConfig swaggerConfig)
- 参数:
basePath - c - methods - Run through annotations in approved controller class to generate ApiListing
This method is called from the document source class and calls the generating methodsoverriderConverter - swaggerConfig -
Copyright © 2015. All Rights Reserved.