Hello, I have a Java REST API on Tomcat that properly generates the swagger
through the annotations and a ReaderListener.
It only *runs *the ReaderListener and the reflections
*once on first call to swagger.json*Is there a way to make it rescan at
every call (not great for performance but does the trick)?
Or a way to rescan on certain conditions (In my case, I would like to
rescan when the user authenticated is different).
Maybe I need to init swagger programmatically rather than through a bean?
Or running it as a filter? But how does that work?
Thank you!
Here is my bean config in tomcat 8.0:
<bean id="SwaggerScanner" class="io.swagger.jaxrs.config.BeanConfig">
<property name="contact" value="[email protected]" />
<property name="version" value="${project.version}" />
<property name="title" value="My API" />
<property name="description" value="My Swagger" />
<property name="license" value="" />
<property name="scan" value="true"/>
<property name="prettyPrint" value="true"/>
<property name="basePath" value="/mybase/v1"/>
<property name="resourcePackage" value=
"com.mypackage.api,com.mypackage.ws.impl"/>
</bean>
And pom.xml:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-jaxrs</artifactId>
<version>1.5.10</version>
</dependency>
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.