Forum Discussion

Blitz's avatar
New Member
2 years ago

From Swagger 1 to 3

Hello, I'm working on a legacy project which was done on Wordnik library.

<!-- Swagger API listing resource -->
<bean id="swaggerResourceJSON" class="com.wordnik.swagger.jaxrs.listing.ApiListingResourceJSON"/>

<!-- Swagger writers -->
<bean id="resourceWriter" class="com.wordnik.swagger.jaxrs.listing.ResourceListingProvider"/>
<bean id="apiWriter" class="com.wordnik.swagger.jaxrs.listing.ApiDeclarationProvider"/>

<jaxrs:server address="/swagger" id="swagger">
<ref bean="swaggerResourceJSON"/>
<ref bean="resourceWriter"/>
<ref bean="apiWriter"/>

<bean id="swaggerConfig" class="com.wordnik.swagger.jaxrs.config.BeanConfig">
<property name="resourcePackage" value=""/>
<property name="basePath" value="/foo/V1/"/>
<property name="title" value="Foo Integration - Foo Services"/>
<property name="scan" value="true"/>

This was setup via XML.

So my question is are there classes that can directly replace "swaggerConfig", "apiWriter", "swaggerResourceJSON" and "resourceWriter" in this case. Becase all other files work, talking about index.jsp/hmtl and so on.



Thank you

No RepliesBe the first to reply