Hi all,
I am using the swagger-maven-plugin version 2.0.5 to generate an OpenApi spec from my JAX-RS Jersey application, and I can't figure out how to deal with subresource classes?
If I do nothing, I end up with the operations being listed twice; if I add @Hidden on the subresource class, the operations are not being generated at all.
The problem can be reproduced with any configuration:
@Path("/rest/service")public class RootResource {
@Path("api")
public Class<SubResource> getProviderApiResource()
{
return SubResource.class;
}
}
public class SubResource {
@Path("doit")
public void doit()
{ }
}
... will generate both /doit and /api/doit.
Any suggestion?
Thanks!