Closed haosong closed 5 years ago
Currently, WildcardOperationName won't be able to get value of @Path annotation if using API interface as follows:
@Path
// Interface, TestService.java @Path("/foo") public interface TestService { @GET @Path("/bar") Response test(); } // Implementation, TestServiceImpl.java public class TestServiceImpl implements TestService { public Response test() { return Response.ok().build(); } }
Probably can add some logic after here to get the value from interface class as follows:
if (classPath.isEmpth() || methodPath.isEmpty()) { for (Class<?> c : clazz.getInterfaces()) { // Get @Path value from interface class } }
@song-hao Would you be interested in submitting a PR to fix this?
Sure, will submit one.
Currently, WildcardOperationName won't be able to get value of
@Path
annotation if using API interface as follows:Probably can add some logic after here to get the value from interface class as follows: