Skip to content

Hamil1/Transformer-function-API-Encora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transformer Function Challenge

Installation

Use the package manager npm to install dependencies.

npm install

Running the project:

npm start

IMPORTANT

  • If you want to edit the transformer function, go to the utils/transformerFunction.js file.
  • When you hit the POST /file endpoint, you're uploading the file to uploads/data.csv

Examples

Usage

Upload the file:

POST api/v1/file

Image text Image text

Retrieve the file in JSON format:

GET api/v1/file

Responds

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"
    }
]

About

Created with StackBlitz ⚡️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors