generatedata icon indicating copy to clipboard operation
generatedata copied to clipboard

CSV API export fails if eol setting is omitted

Open therealcmj opened this issue 3 years ago • 1 comments

In an API request to export a CSV file omitting the eol setting results in a single row.

e.g.:

this works:

    "export": {
        "type": "CSV",
        "settings": {
            "delimiter": ",",
            "eol": "Unix"
        }
    }

this returns a single result:

    "export": {
        "type": "CSV",
        "settings": {
            "delimiter": ","
        }
    }

therealcmj avatar Aug 13 '21 17:08 therealcmj

Example input users.txt

This can be sent to the API endpoint via curl -X POST -H "Content-Type: application/json" -d @users.txt http://localhost:8080/api/v1/data

therealcmj avatar Aug 13 '21 17:08 therealcmj