package infrastructure.client.encodevalue.api;

import infrastructure.interceptor.LoggingFilter;
import jakarta.ws.rs.HeaderParam;
import jakarta.ws.rs.POST;
import org.eclipse.microprofile.rest.client.annotation.ClientHeaderParam;
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import org.tempuri.Prueba;
import org.tempuri.PruebaResponse;

@RegisterRestClient(configKey = "encode-value")
@RegisterProvider(LoggingFilter.class)
public interface EncodeValueClient {
    @POST
    @ClientHeaderParam(name = "appId", value = "${app.appId}")
    PruebaResponse encodeValue(
            @HeaderParam("requestId") String requestId,
            Prueba request
    );
}