package de.frigosped.dc.client;

import de.frigosped.dc.model.MistralOcrRequest;
import de.frigosped.dc.model.MistralOcrResponse;
import jakarta.ws.rs.*;
import jakarta.ws.rs.core.MediaType;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;

@RegisterRestClient(configKey = "mistral-ocr")
@Path("/v1")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public interface MistralOcrClient {

    @POST
    @Path("/ocr")
    MistralOcrResponse ocr(@HeaderParam("Authorization") String authorization,
                           MistralOcrRequest request);
}