Skip to content
Advertisement

Not a REST client interface: interface MyClient. No @Path annotation found on the class or any methods of …. [Quarkus]

I have a project that consumes an api and am struggling to get the Rest Client injected into my service.
(to note, i am mainly doing what i did in another instance that works however I can’t pinpoint what’s wrong here to make this one fail)

My Client interface:

JavaScript

on my consuming side I have:

JavaScript

however when it tries to get initialised I am getting:

JavaScript
JavaScript

Advertisement

Answer

So, found the solution.

I added the following build plugins to the module contianing my Client interface

JavaScript

not entirely sure which of those caused the error to get solved really and i wouldn’t expect such an error for any of those being missing.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement