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
okfile parameter is set totrue. -
Save OK File: If the
okparameter istrue, the Handler calls thesaveOkFilemethod from the Importer.