Skip to content

RashedulAlam/FlightDataAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flight Chain Analysis

Overview

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.

API Endpoints

Flight API

  • 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

Flight Inconsistency API

  • Get Inconsistent Flight Chain : GET /api/v1/flight-analysis

Table of Contents

Prerequisites

Getting Started

Installation

  1. Unzip the source code in a directory

Running the Application

  1. Open project in Visual Studio
  2. Step start up project as FlightDataAnalysis
  3. Run the project
  4. 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

Testing

Both unit tests and integration tests are added part of development.

Unit Tests

Unit tests are added only for business classes to validate business logic in isolated environment.

SpecFlow BDD Tests

BDD tests are added part of API testing. It validates the acceptance criteria of each feature by running the application and testing the APIs.