This is simple web api project using .NET8.0 which anlyzes the flight chain. The Web Service exposes several APIs. The APIs are related to flights and flight chain inconsistency analysis.
flights.csv
contains the data file. Much data is not add. Add more data as per need.
- Get All Flights :
GET /api/v1/flights
- Get Specific Flight by ID :
GET /api/v1/flights/{id}
- Get Flight Options(returns only id and flight number) :
GET /api/v1/flights/options
- Get Flights by Pagination :
GET /api/v1/flights/paged?pageNumber=1&pageSize=10
- Get Inconsistent Flight Chain :
GET /api/v1/flight-analysis
- Unzip the source code in a directory
- Open project in Visual Studio
- Step start up project as FlightDataAnalysis
- Run the project
- Or On directory where the docker file exists run command
docker build -t flight_chain_analysis .
docker run -d -p 8080:8080 flight_chain_analysis
Both unit tests and integration tests are added part of development.
Unit tests are added only for business classes to validate business logic in isolated environment.
BDD tests are added part of API testing. It validates the acceptance criteria of each feature by running the application and testing the APIs.