package dev.dinauer.maven.user;

import io.quarkus.oidc.client.filter.OidcClientFilter;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;

import java.util.List;
import java.util.Map;

@Path("/realms/maven/accounts")
@OidcClientFilter
@RegisterRestClient(configKey = "idp")
public interface UserClient
{
    @GET
    List<User> getUser();

    @POST
    @Path("/search")
    Map<String, User> get(List<String> ids);
}
