curl -X POST http://localhost:8080/api/v1/pipeline \
-H "Content-Type: application/json" \
-d '{
"name": "employees",
"source": {
"schemaProperties": {
"fields": [
{"name": "id", "type": "int"},
{"name": "first_name", "type": "string"},
{"name": "last_name", "type": "string"},
{"name": "email", "type": "string"},
{"name": "salary", "type": "double"}
]
},
"fileAttributes": {
"csvAttributes": {
"delimiter": ",",
"header": true,
"encoding": "UTF-8"
}
}
},
"destination": {
"database": {
"dbName": "datris",
"schema": "public",
"table": "employees",
"usePostgres": true
}
}
}'