Use the package manager npm to install dependencies.
npm installRunning the project:
npm start
- If you want to edit the transformer function, go to the
utils/transformerFunction.jsfile. - When you hit the
POST /fileendpoint, you're uploading the file touploads/data.csv
Upload the file:
POST api/v1/file
Retrieve the file in JSON format:
GET api/v1/file
POST api/v1/file
{
"status": true,
"message": "File is uploaded",
"data": {
"name": "data.csv",
"mimetype": "text/csv",
"size": 21
}
}
GET api/v1/file
[
{
"Numbers": "1"
},
{
"Numbers": "2"
},
{
"Numbers": "3"
},
{
"Numbers": "4"
}
]

