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

Inherit Resource-@Path #100

Closed MarkusKull closed 9 years ago

MarkusKull commented 9 years ago

In grown Code we encountered @Path-Annotation at Resource-Baseclasses instead of Leaf-classes. At least Resteasy supports this. JAX-RS doesnt say much about it (methods and classes can be annotated by @Path and the path-value is combined). Because combining paths over multiple classes doesnt seem useful, only the first encountered Path is taken.

conorroche commented 9 years ago

thanks markus, ive done a slightly different implementation of this fix to reuse an existing method to get the annotation in an inheritable way and to ensure the returned path has forward slashes adjusted if needed