java - Inheriting Parent Paths in Swagger -
we have situation we're trying use swagger existing codebase using apache wink @parent annotation. per jax-rs spec annotations aren't inherently inherited (see this answer on post more on that), apparently apache wink folks have gotten around via @parent annotation. in using actual rest service works great, apparently swagger isn't recognizing it. here's example:
@path("father") public class fatherresource { // parent resource code } @parent(fatherresource.class) @path("child") public class childresource extends fatherresource { // resource code } the endpoint can referenced /context/father/child/ fine. however, when swagger json generated using swagger-core appears /child , not /father/child.
my question two-fold 1) there way can swagger recognize apache wink @parent annotation, , 2) if not, there way can use other means swagger recognize inherited path annotations on parent classes? i'm open custom solutions/ideas.
note: we're using java 1.7, swagger 1.5.15, , wink 1.1 (the version comes bundled websphere 8.5.5).
thanks much!
Comments
Post a Comment