I'm not trying to be obtuse, but how is that a web service?  Also, I need 
it to accept input params (which would be the tags I'd want to dynamically 
filter on) and I don't see anyway to make that happen in what I pasted 
above?

On Thursday, February 23, 2017 at 3:15:47 PM UTC-5, Ron wrote:
>
> So that’s your web service. You just need to add your filter to that.
>
>  
>
>  
>
>  
>
> *From: *<[email protected] <javascript:>> on behalf of Bryan 
> Nelson <[email protected] <javascript:>>
> *Reply-To: *"[email protected] <javascript:>" <
> [email protected] <javascript:>>
> *Date: *Thursday, 23 February 2017 at 12:06
> *To: *Swagger <[email protected] <javascript:>>
> *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] <javascript:>.
> 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