Posts

Showing posts from April, 2020

Rest API | .net core | Multiple Datasource | XUnit

Image
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 https://localhost:port/api/ Persons 2.        Get single person by id https://localhost: port/api/Persons/ {Id} 3.        Get person by color https://localhost: port/api/Persons/ color/{color} Note: Please change the path of current csv file location in appsetting.sjon in order...