So that’s your web service. You just need to add your filter to that.

 

 

 

From: <[email protected]> on behalf of Bryan Nelson 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Thursday, 23 February 2017 at 12:06
To: Swagger <[email protected]>
Subject: Re: Dynamic Filtering of APIs

 

Ok, here's my setup.  I have the UI working like mentioned above.  I then have 
a java class that extends javax.ws.rs.core.Application where I do this: 

 

public class MyApplication extends Application { 

  public MyApplication() {

        BeanConfig beanConfig = new BeanConfig();

        beanConfig.setVersion("1.0");

        beanConfig.setTitle("My App");

        beanConfig.setDescription("My description.");

        beanConfig.setSchemes(new String[]{"http, https"});

        beanConfig.setBasePath("/myContext/"); 

        beanConfig.setResourcePackage("com.myPackage.rest.resource");

        beanConfig.setPrettyPrint(true);

        beanConfig.setScan(true);

    }

    @Override

    public Set<Class<?>> getClasses() { 

    

 

Set<Class<?>> resources = new HashSet<Class<?>>(); 

        resources.add(ApiListingResource.class); 
        resources.add(SwaggerSerializers.class);

        

        return resources;

    }


}

 

That's all I have really besides all my annotations obviously.

 

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


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