forked from lsmyrnaios/UrlsController
- Fix missing changes.
- Change the HTTP-method of the renamed "test/uploadParquetFile" endpoint to "POST".
This commit is contained in:
parent
9cbac77c2a
commit
7dc72e242e
|
@ -1,7 +1,7 @@
|
||||||
package eu.openaire.urls_controller;
|
package eu.openaire.urls_controller;
|
||||||
|
|
||||||
|
import eu.openaire.urls_controller.controllers.BulkImportController;
|
||||||
import eu.openaire.urls_controller.controllers.UrlsController;
|
import eu.openaire.urls_controller.controllers.UrlsController;
|
||||||
import eu.openaire.urls_controller.services.BulkImportServiceImpl;
|
|
||||||
import eu.openaire.urls_controller.services.UrlsServiceImpl;
|
import eu.openaire.urls_controller.services.UrlsServiceImpl;
|
||||||
import eu.openaire.urls_controller.util.FileUtils;
|
import eu.openaire.urls_controller.util.FileUtils;
|
||||||
import eu.openaire.urls_controller.util.UriBuilder;
|
import eu.openaire.urls_controller.util.UriBuilder;
|
||||||
|
@ -72,7 +72,7 @@ public class Application {
|
||||||
shutdownThreads(UrlsServiceImpl.insertsExecutor);
|
shutdownThreads(UrlsServiceImpl.insertsExecutor);
|
||||||
shutdownThreads(FileUtils.hashMatchingExecutor);
|
shutdownThreads(FileUtils.hashMatchingExecutor);
|
||||||
shutdownThreads(UrlsController.backgroundExecutor);
|
shutdownThreads(UrlsController.backgroundExecutor);
|
||||||
shutdownThreads(BulkImportServiceImpl.bulkImportExecutor);
|
shutdownThreads(BulkImportController.bulkImportExecutor);
|
||||||
|
|
||||||
logger.info("Exiting..");
|
logger.info("Exiting..");
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,10 +15,7 @@ import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.jdbc.core.JdbcTemplate;
|
import org.springframework.jdbc.core.JdbcTemplate;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
|
@ -113,7 +110,7 @@ public class TestController {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("parquet_upload")
|
@PostMapping("uploadParquetFile")
|
||||||
public ResponseEntity<?> uploadParquetFile() {
|
public ResponseEntity<?> uploadParquetFile() {
|
||||||
|
|
||||||
logger.debug("We got a \"parquet_upload\" request.");
|
logger.debug("We got a \"parquet_upload\" request.");
|
||||||
|
|
Loading…
Reference in New Issue