This REST API designed for managing vehicles, parking garages, and parking records.
- Vehicle creation, modification, deletion
- Parking Garage creation, modification, deletion
- Parking Record creation
- Get all Vehicles
- Get a Vehicle by ID
- Get all Parking Garages
- Get a Parking Garage by ID
- Get all Parking Records
- Get a Parking Record by ID
You can check out the documentation here.
OR
You can open it through Swagger as well.
Once the application is running, navigate to http://localhost:9000/v1/api-docs
to access the Swagger UI.
- Java JDK 21
- Maven (optional)
Clone the project
git clone https://github.com/davidpokol/parking-system-api.git parking-garage-api
Navigate to the project directory
cd parking-garage-api
Set up Environment Variables
Install dependencies
./mvnw install
Start the server
./mvnw spring-boot:run -pl web
To run this project, you will need to add the following environment variables to your .env file. This project uses PostgreSQL, so create a database if you don't have one yet.
DB_URL
DB_USER
DB_PASSWORD
There is also an example.env
file in the project directory, to help you set up the environment variables.