I am trying to integrate a second rest client to my micro service and am getting an error.
@RegisterRestClient
public interface <my-interface> {
@POST
@Path("/example")
Response postStuff(DataBean data);
}
The injection class does it as follows:
@Inject @Any
protected <my-interface> api;
Following is the error msg:
javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type <my-class> and qualifiers [@Any]
I have seen this issue pop up a lot but adding @ApplicationScoped or @Singleton does not work for me. As I understand the @Path annotation should make the interface discoverable. My other interface does not have any issues and I cannot imagine why.
Help is appreciated :)