CsvHeleper kullanarak, Generic olarak CSV dosyası oluşturan ve oluşturulan .csv dosyasının içeriğini okuyabilen yardımcı araç
> docker run -p 8080:80 nrkt/csvoperationshelper
https://joshclose.github.io/CsvHelper/examples
*Projeyi çalıştırdıktan sonra test etmek için;
http://localhost:8080/swagger/index.html
veya;
http://localhost:8080/Example/CreateCsv
[
{
"id": 1,
"name": "TetsProduct1",
"price": 3.14,
"group": {
"id": 1,
"name": "Test"
},
"status": 1,
"addedDate": "2020-06-20T11:37:15.536Z"
},
{
"id": 2,
"name": "TetsProduct2",
"price": 10,
"group": {
"id": 1,
"name": "Test"
},
"status": 2
}
]
http://localhost:8080/Example/ReadCsv
Şu şekilde bir yanıt döner;
[
{
"id": 1,
"name": "TetsProduct1",
"price": 3.14,
"group": {
"id": 1,
"name": "Test"
},
"status": 1,
"addedDate": "2020-06-20T11:37:15.536Z"
},
{
"id": 2,
"name": "TetsProduct2",
"price": 10,
"group": {
"id": 1,
"name": "Test"
},
"status": 2
}
]