title: How to generate swagger spec from from JAX RS annotated interface?
body: <p>I was wondering if there's a way to generate the swagger spec from an existing JAX RS annotated interface, e.g. something like this:</p>
  
  <pre><code>@Consumes(MediaType.APPLICATION_JSON)
  @Produces(MediaType.APPLICATION_JSON)
  public interface ISampleService {
  
      @GET
      @Path("sample/foobar/{foobarId}")
      Foobar getFoobar(@PathParam("foobarId") String foobarId);
  
      @PUT
      @Path("sample/foobar/{foobarId}")
      Foobar updateFoobar(@PathParam("foobarId") String foobarId, Foobar foobar);
  }
  </code></pre>
  
  <p>I did find this <a href="https://github.com/sdaschner/jaxrs-analyzer" rel="noreferrer">"jaxrs analyzer" project</a>, but it doesn't seem to recognize my interface.</p>
  
  <p>Basically, I have my service defined in an interface like that, and I want to reverse-engineer the swagger spec to be able to post it so anyone else can generate (other) clients using the swagger functionality.</p>
  
  <p>Preferably, the solution would just work in a maven build (plugin).</p>