title: How to integrate Swagger with Maven + Java + Jersey +Tomcat
body: <p>I can't seem to understand how to integrate Swagger to generate API documentation.
  url:  ####:8080/MyService/rest/users/getall <br>
  I have added Annotations to code and dependency.<br>
  I try to visit: ####:8080/MyService/rest/ but says its not found.</p>
  
  <p>//web.xml<br></p>
  
  <pre><code>     &lt;servlet&gt;
       &lt;servlet-name&gt;mycompany-users-serlvet&lt;/servlet-name&gt;
       &lt;servlet-class&gt;com.sun.jersey.spi.container.servlet.ServletContainer&lt;/servlet-class&gt;
       &lt;init-param&gt;
        &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
        &lt;param-value&gt;com.users.services.mycompany,com.wordnik.swagger.jersey.listing&lt;/param-value&gt;
      &lt;/init-param&gt; `
      &lt;servlet&gt;
    &lt;servlet-name&gt;JerseyJaxrsConfig&lt;/servlet-name&gt;
    &lt;servlet-class&gt;com.wordnik.swagger.jersey.config.JerseyJaxrsConfig&lt;/servlet-class&gt;
    &lt;init-param&gt;
      &lt;param-name&gt;api.version&lt;/param-name&gt;
      &lt;param-value&gt;1.0.0&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;init-param&gt;
      &lt;param-name&gt;swagger.api.basepath&lt;/param-name&gt;
      &lt;param-value&gt;####:8080/MyService/rest/&lt;/param-value&gt; //not sure What this should be?
    &lt;/init-param&gt;
    &lt;load-on-startup&gt;2&lt;/load-on-startup&gt;`
  </code></pre>