I have created some interface to a 3rd party service:
@RegisterRestClient
public interface FooService {
@Path("/foo")
@POST
MyResponse foo(MyRequest request, @HeaderParam("X-Bla") String xBla);
...
This is working fine.
But then, I also want to create a "lite" version of the API. I was thinking of MyLiteFoo implements FooService
, but I notice that all the annotations need to be redeclared in the implementing class since none are @Inherited
?
Added: Can't even implements FooService
because Quarkus will complain.
Or is there a simpler approach?