Class FullIndexationController

java.lang.Object
de.cxp.ocs.controller.FullIndexationController

@RestController @RequestMapping(path="/indexer-api/v1/full") public class FullIndexationController extends Object
  • Constructor Details

    • FullIndexationController

      public FullIndexationController()
  • Method Details

    • 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 Exception
      Add products to import into current session.
      Parameters:
      data - BulkImportData that 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)