title: Swagger REST API annotation not working on interface but working on implementation class
body: <p><strong>This is my Interface ClassA .java</strong></p>
  
  <pre><code>@Path("/"+Paths.STORIES)
  @ApiModel(value = "Name API")
  @Api(value = "/stories", description = "Name API")
  public interface ClassA {
      @GET
      @Path("/"+Paths.STORYID)
      @Produces(MediaType.APPLICATION_JSON)
      @ApiOperation(value = "Fetch Story by ID", notes = "More notes about this method")
      @ApiResponses(value = {
                @ApiResponse(code = 400, message = "Invalid ID supplied"),
                @ApiResponse(code = 200, message = "Invalid ID supplied"),
              })
      public Response getNameFromID(@PathParam("nameId") String nameId);
  }
  </code></pre>
  
  <p><strong>this is my implementation class.</strong></p>
  
  <pre><code>@Singleton
  @Component
  public class ClassB implements ClassA,InitializingBean{
      @Override
      @SuppressWarnings({ "unchecked", "rawtypes" })
      public Response getNameFromID(final String nameId) {
          Map NameResponse = new HashMap&lt;String,Object&gt;();
          NameResponse.put("repsonseCode", "200");
          NameResponse.put("errorCode", "");
          return Response.status(200).entity(NameResponse).build();
      }
  }
  </code></pre>
  
  <p><strong>Application-context.xml entry</strong></p>
  
  <pre><code>&lt;bean id="swaggerConfig" class="com.wordnik.swagger.jaxrs.config.BeanConfig"&gt;
          &lt;property name="resourcePackage" value="com.razak.sample" /&gt;
          &lt;property name="version" value="1.0.0" /&gt;
          &lt;property name="basePath" value="http://localhost:8080/api" /&gt;
          &lt;property name="title" value="Petstore sample app" /&gt;
          &lt;property name="description" value="This is a app." /&gt;
          &lt;property name="contact" value="apiteam@wordnik.com" /&gt;
          &lt;property name="license" value="Apache 2.0 License" /&gt;
          &lt;property name="licenseUrl"
              value="http://www.apache.org/licenses/LICENSE-2.0.html" /&gt;
          &lt;property name="scan" value="true" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>web.xml entry</p>
  
  <p></p>
  
  <pre><code>    &lt;param-name&gt;swagger.version&lt;/param-name&gt;
  
      &lt;param-value&gt;1.1&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;http://localhost:8080/api&lt;/param-value&gt;
  
  &lt;/init-param&gt;
  
  &lt;init-param&gt;
  
      &lt;param-name&gt;swagger.security.filter&lt;/param-name&gt;
  
      &lt;param-value&gt;com.wordnik.swagger.sample.util.ApiAuthorizationFilterImpl&lt;/param-value&gt;
  
  &lt;/init-param&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>@Api(value = "/stories", description = "Story API") at class level and 
      @GET
      @Path("/"+Paths.STORYID)
      @Produces(MediaType.APPLICATION_JSON)
      @ApiOperation(value = "Fetch Story by ID", notes = "More notes about this method")
      @ApiResponses(value = {
                @ApiResponse(code = 400, message = "Invalid ID supplied"),
                @ApiResponse(code = 200, message = "Invalid ID supplied"),
              })
  </code></pre>
  
  <p><strong><em>When i moved these entry from interface to Implementation class.i m able to access rest endpoints in swagger.swagger is working.but when i placed that annotation in interface itself.it is not working.</em></strong></p>