This project is a simple Spring Boot application that manages airline flight information. It provides RESTful APIs to search for flights based on source, destination, and date using JPAStreamer.
- Search for flights by source, destination, and date.
- Filter flights by source and date.
- Find flights based on source and destination.
- Java
- Spring Boot
- Spring Web
- Spring Data JPA
- JPAStreamer
- MySQL
- Java 17 or higher
- Spring Boot 3.x
- MySQL Database
- Clone the repository:
git clone https://github.com/username/flight-management-system.git
- Navigate to the project directory:
cd flight-management-system - Configure your database connection in
application.properties:spring.datasource.url=jdbc:mysql://localhost:3306/flight_management spring.datasource.username=root spring.datasource.password=yourpassword spring.jpa.hibernate.ddl-auto=update
- Run the application:
mvn spring-boot:run
GET /airline/findFlightFrom/{source}/to/{destination}/on/{date}Example:
GET /airline/findFlightFrom/CXB/to/CCU/on/2025-11-17
GET /airline/findFlightFrom/{source}/on/{date}Example:
GET /airline/findFlightFrom/CXB/on/2025-11-17
GET /airline/findFlightFrom/{source}/to/{destination}Example:
GET /airline/findFlightFrom/CXB/to/CCU