Function Description
Endpoint
The CSV Import API provides an endpoint at /rest/default/V1/pacemaker/import/csv
. The process works as follows:
-
Data Decoding: The data is first decoded using a base64 decoder.
-
File Saving: If the data is successfully decoded, it is passed to the File Service, which saves the CSV file to the import directory.
-
Model Creation: The Handler then creates an upload model.
-
OK File Check: The Handler checks if the
ok
file parameter is set totrue
. -
Save OK File: If the
ok
parameter istrue
, the Handler calls thesaveOkFile
method from the Importer.