Function Description

Endpoint

The CSV Import API provides an endpoint at /rest/default/V1/pacemaker/import/csv. The process works as follows:

  1. Data Decoding: The data is first decoded using a base64 decoder.

  2. File Saving: If the data is successfully decoded, it is passed to the File Service, which saves the CSV file to the import directory.

  3. Model Creation: The Handler then creates an upload model.

  4. OK File Check: The Handler checks if the ok file parameter is set to true.

  5. Save OK File: If the ok parameter is true, the Handler calls the saveOkFile method from the Importer.