title: swagger ui integration with maven project not displaying APIs
body: <p>I have an existing maven project with REST APIs. I am trying to integrate Swagger with the project. When I run the project, I get the empty Swagger UI page. No APIs are loaded. Where am I going wrong?</p>
  
  <p>pom.xml</p>
  
  <pre><code>&lt;!-- Swagger --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.swagger&lt;/groupId&gt;
          &lt;artifactId&gt;swagger-jersey2-jaxrs&lt;/artifactId&gt;
          &lt;version&gt;1.5.16&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I am using a custom Application class(not web.xml)</p>
  
  <pre><code>public class MyRestApplication extends ResourceConfig {
  public MyRestApplication() {
      System.out.println("Entering Custom Application");
      property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);    
      property(ServerProperties.
      BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);
      register(RolesAllowedDynamicFeature.class);        
      register(StorageResource.class);
      register(io.swagger.jaxrs.listing.ApiListingResource.class);
      register(io.swagger.jaxrs.listing.SwaggerSerializers.class);        
  }
  }    
  </code></pre>
  
  <p>In my StorageResource file:</p>
  
  <pre><code>@Api(value = "/Person")
  @Path("")
  public class StorageResource {
  static Logger logger = 
  Logger.getLogger(StorageResource.class.getName());
  @PUT
  @Path("/person-manager-resource/addPerson")
  @Produces("application/json")
  @Consumes("application/json")
  @ApiOperation(
          value = "method api",
          notes = "method api notes"
  )
  public Object addPerson(String reqBody) {
      AddPerson add = new AddPerson();
      return add.addPerson(reqBody);
  }
  }
  </code></pre>
  
  <p>In the index.html of Swagger UI(copied from <strong>dist</strong> folder to webapp folder)</p>
  
  <pre><code>window.onload = function() {  
  // Build a system
  const ui = SwaggerUIBundle({
  url: "http://localhost:8080/demographics/dgs/swagger.json",
  dom_id: '#swagger-ui',
  presets: [
    SwaggerUIBundle.presets.apis,
    SwaggerUIStandalonePreset
  ],
  plugins: [
    SwaggerUIBundle.plugins.DownloadUrl
  ],
  layout: "StandaloneLayout"
  })
  window.ui = ui
  }
  </code></pre>
  
  <p>My web.xml file:</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;Jersey Web Application&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;jersey.config.server.provider.packages&lt;/param-name&gt;
          &lt;param-value&gt;in.healthelife.DGS&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;javax.ws.rs.Application&lt;/param-name&gt;
          &lt;param-value&gt;in.healthelife.DGS.data.MyRestApplication&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Jersey Web Application&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/dgs/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>