Missing config key in hero register rest client annotation
galderz opened this issue · 0 comments
galderz commented
Another website bug:
package io.quarkus.workshop.superheroes.fight.client;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
@Path("/api/heroes")
@Produces(MediaType.APPLICATION_JSON)
@RegisterRestClient
public interface HeroProxy {
@GET
@Path("/random")
Hero findRandomHero();
}
@RegisterRestClient
is missing the configKey = "hero"
.