|
@@ -2,6 +2,7 @@ package es.uv.saic.web;
|
|
|
|
|
|
|
|
import es.uv.saic.extractor.ExtractionRequest;
|
|
import es.uv.saic.extractor.ExtractionRequest;
|
|
|
import es.uv.saic.service.EnhancementService;
|
|
import es.uv.saic.service.EnhancementService;
|
|
|
|
|
+import es.uv.saic.service.ExtractionResponse;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
@@ -27,7 +28,7 @@ public class EnhancementController {
|
|
|
private final EnhancementService enhancementService;
|
|
private final EnhancementService enhancementService;
|
|
|
|
|
|
|
|
@PostMapping("single-step")
|
|
@PostMapping("single-step")
|
|
|
- public String singleStepAnalysis(@RequestBody String html,
|
|
|
|
|
|
|
+ public ExtractionResponse singleStepAnalysis(@RequestBody String html,
|
|
|
@RequestParam(value = "provider", required = false) String provider,
|
|
@RequestParam(value = "provider", required = false) String provider,
|
|
|
@RequestParam(value = "model", required = false) String model) {
|
|
@RequestParam(value = "model", required = false) String model) {
|
|
|
log.info("====== EnhancementController.singleStepAnalysis start ======");
|
|
log.info("====== EnhancementController.singleStepAnalysis start ======");
|
|
@@ -41,7 +42,7 @@ public class EnhancementController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping(value = "single-step/file", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
@PostMapping(value = "single-step/file", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
|
- public String singleStepAnalysisFile(@RequestPart("file") MultipartFile file,
|
|
|
|
|
|
|
+ public ExtractionResponse singleStepAnalysisFile(@RequestPart("file") MultipartFile file,
|
|
|
@RequestParam(value = "provider", required = false) String provider,
|
|
@RequestParam(value = "provider", required = false) String provider,
|
|
|
@RequestParam(value = "model", required = false) String model) {
|
|
@RequestParam(value = "model", required = false) String model) {
|
|
|
log.info("====== EnhancementController.singleStepAnalysisFile start ======");
|
|
log.info("====== EnhancementController.singleStepAnalysisFile start ======");
|
|
@@ -66,7 +67,7 @@ public class EnhancementController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping(value = "single-step/csv-file", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
@PostMapping(value = "single-step/csv-file", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
|
- public String singleStepAnalysisCsvFile(@RequestPart("file") MultipartFile file,
|
|
|
|
|
|
|
+ public ExtractionResponse singleStepAnalysisCsvFile(@RequestPart("file") MultipartFile file,
|
|
|
@RequestParam(value = "provider", required = false) String provider,
|
|
@RequestParam(value = "provider", required = false) String provider,
|
|
|
@RequestParam(value = "model", required = false) String model) {
|
|
@RequestParam(value = "model", required = false) String model) {
|
|
|
log.info("====== EnhancementController.singleStepAnalysisCsvFile start ======");
|
|
log.info("====== EnhancementController.singleStepAnalysisCsvFile start ======");
|