Rest API | .net core | Multiple Datasource | XUnit
In this post I am am writing Rest API’S in .net core to read CSV. This Application have following features.
1. This application is reading data from CSV file and returning person object
2. Added XUnit tests for each endpoints
3. Added Model class and Interface in order to create person instance
4. Added additional Data source as sql server.
This API have following endpoints.
1. Get all the person
2. Get single person by id
3. Get person by color
Note: Please change the path of current csv file location in appsetting.sjon in order to read csv from proper location.TestData.csv is added with solution
Please find the code in below github repo