Package de.cxp.ocs.controller
Class FullIndexationController
- java.lang.Object
-
- de.cxp.ocs.controller.FullIndexationController
-
@RestController @RequestMapping(path="/indexer-api/v1/full") public class FullIndexationController extends Object
-
-
Constructor Summary
Constructors Constructor Description FullIndexationController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Integer>add(BulkImportData data)Add products to import into current session.org.springframework.http.ResponseEntity<Void>cancel(ImportSession session)org.springframework.http.ResponseEntity<Boolean>done(ImportSession session)org.springframework.http.ResponseEntitystartImport(String indexName, String locale)
-
-
-
Method Detail
-
startImport
@GetMapping("/start/{indexName}") public org.springframework.http.ResponseEntity startImport(@PathVariable("indexName") String indexName, @RequestParam("locale") String locale)
-
add
@PostMapping("/add") public org.springframework.http.ResponseEntity<Integer> add(@RequestBody BulkImportData data) throws ExceptionAdd products to import into current session.- Parameters:
data-BulkImportDatathat contains the ImportSession that was created at the start of the import plus one or more documents to be indexed- Throws:
Exception
-
done
@PostMapping("/done") public org.springframework.http.ResponseEntity<Boolean> done(@RequestBody ImportSession session) throws Exception- Throws:
Exception
-
cancel
@PostMapping("/cancel") public org.springframework.http.ResponseEntity<Void> cancel(@RequestBody ImportSession session)
-
-