but that's for JaxRS. So for Spring I tried to do this:
public class DocumentationController extends ApiDocumentationController {
public DocumentationController(){
com.wordnik.swagger.config.FilterFactory.setFilter(new MySwaggerSpecFilter());
ApiInfo apiInfo = new ApiInfo("swagger4spring-web example app", "This is a basic web app for demonstrating swagger4spring-web",
"http://localhost:8080/terms", "http://localhost:8080/contact", "MIT", "http://opensource.org/licenses/MIT");
setApiInfo(apiInfo);
}
}
I need to add a SpecFilter in order to exclude certain field params. I am loosely following this post to do it:
http://stackoverflow.com/questions/21911166/how-can-i-set-swagger-to-ignore-suspended-asyncresponse-in-asynchronous-jax-rs
but that's for JaxRS. So for Spring I tried to do this:
but it doesn't work.