I would try adding /api, and /doit to the @Path annotations.

Pat

On Friday, October 26, 2018 at 11:17:34 AM UTC-4, franck102 wrote:
>
> 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!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to