use cxf jaxrs org.apache.cxf.jaxrs.swagger.SwaggerFeature in the rest quickstart configuration which make swagger configuration a lot simpler