package com.datamate.datamanagement.infrastructure.client;

import com.datamate.common.infrastructure.common.Response;
import com.datamate.datamanagement.infrastructure.client.dto.PdfTextExtractRequest;
import com.datamate.datamanagement.infrastructure.client.dto.PdfTextExtractResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "pdf-text-extract-service", url = "${pdf.text.extract.service.url:http://datamate-backend-python:18000}")
public interface PdfTextExtractClient {

    @PostMapping("/api/dataset/pdf-text-extract")
    Response<PdfTextExtractResponse> extractPdfText(@RequestBody PdfTextExtractRequest request);
}
