teamcarma / swagger-jaxrs-doclet

This fork is no longer actively maintained, please switch to https://github.com/conorroche/swagger-doclet
Apache License 2.0
81 stars 38 forks source link

Resource with @Path("/") is ignored #44

Closed loucasa closed 9 years ago

loucasa commented 9 years ago

Not sure if I am missing something but if I change the value so that it is not root then it works

alexradzin commented 9 years ago

I experienced the same issue and worked it around by changing values of @Path annotation. I was lucky that I could do this in my case.

conorroche commented 9 years ago

I have now fixed this so that by default resources with path of @Path("/") or @Path("") will have a resource root path of /root but this can be customized either by using the doclet param -resourceRootPath or by using the @resourcePath javadoc tag on the class,

NOTE for people with version prior to this fix you can have solve it by setting the resourcePath javadoc tag on the class e.g.

/**

}

conorroche commented 9 years ago

@loucasa or @alexradzin can you let me know if this has solved your issues now?

loucasa commented 9 years ago

The latest works for me now thanks but note the @resourcePath workaround does not work on v1.0.3 or below, seems the checkin "fix for issue 46" allowed the workaround to work