package infrastructure.client.registersecurity.api;

import infrastructure.client.registersecurity.dto.request.RegisterSecurityRequest;
import infrastructure.interceptor.LoggingFilter;
import io.smallrye.mutiny.Uni;
import jakarta.ws.rs.HeaderParam;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.core.Response;
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;

@RegisterRestClient(configKey = "register-security")
@RegisterProvider(LoggingFilter.class)
public interface RegisterSecurityClient {
    @POST
    Uni<Response> registerSecurity(
            @HeaderParam("requestId") String requestId,
            RegisterSecurityRequest request
    );
}