The Flight Planner is a straightforward flight planning service implemented using the Java Spring Boot framework and a PostgreSQL database. This API allows users to create, search, and delete flight and airport data, offering two storage options: in-memory storage using Java data structures and a PostgreSQL database storage option.
To run the Flight Planner API, follow these steps:
- Clone this repository using the
git clone
command. - Build the project.
- Run the application.
In the src/main/resources/applications.properties
file, you can set the version
variable to database
or in-memory
to choose your preferred storage option.
flightplanner.service.version=database
By default, all database tables are dropped and recreated every time the application is launched. If you want to persist data in the database, set spring.liquibase.drop-first
to false
in the application.properties
file.
spring.liquibase.drop-first=true
The Flight Planner provides a set of endpoints catering to different user roles: