Hi all,

I am currently trying to upgrade from swagger-jaxrs:1.5.4 
to swagger-jaxrs:1.5.10 and ran into an issue.

The basepath is no longer being returned on the swagger.json.


I programatically bootstrap our application like so:

public class Bootstrap extends HttpServlet
{
    private static final long serialVersionUID = 1L;

    static
    {
        // Retrieve the system name
        String systemName = 
ApplicationConfig.getInstance().getValue(ConfigurationKeys.MODULE_NAME);
        String resourcePackage = 
ApplicationConfig.getInstance().getValue(ConfigurationKeys.RESOURCE_PACKAGE);

        // Swagger configuration
        BeanConfig beanConfig = new BeanConfig();
        beanConfig.setVersion("@BUILD_VERSION@");
        beanConfig.setBasePath("/" + systemName + "/resources");
        beanConfig.setResourcePackage(resourcePackage);
        beanConfig.setScan(true);
    }
}

Any ideas?

-- 
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.

Reply via email to