How eadalaramya31/vehicle-rental-system works
Vehicle Rental System is a Spring Boot REST API for managing vehicles and customers, renting vehicles, and processing returns. The documented user workflow is an API client calling the vehicle, customer, or rental endpoints; rental operations include starting a rental and returning a vehicle. The tree shows separate controller, service, repository, and model layers, but source excerpts were not provided, so their internal calls and persistence relationships cannot be verified. The README documents H2 as the local database, but not its wiring to those layers.
Main entry points: VehicleController.java Vehicle endpoints · CustomerController.java Customer endpoints · RentalController.java Rental endpoints
Components 18
REST API
- Spring Boot app
src/main/java/com/example/rental/VehicleRentalApplication.java - Vehicle endpoints
src/main/java/com/example/rental/controller/VehicleController.java - Customer endpoints
src/main/java/com/example/rental/controller/CustomerController.java - Rental endpoints
src/main/java/com/example/rental/controller/RentalController.java
Rental domain
- Vehicle service
src/main/java/com/example/rental/service/VehicleService.java - Customer service
src/main/java/com/example/rental/service/CustomerService.java - Rental service
src/main/java/com/example/rental/service/RentalService.java - Rental request
src/main/java/com/example/rental/dto/RentalRequest.java - Vehicle model
src/main/java/com/example/rental/model/Vehicle.java - Customer model
src/main/java/com/example/rental/model/Customer.java - Rental model
src/main/java/com/example/rental/model/Rental.java - Rental status
src/main/java/com/example/rental/model/RentalStatus.java - Vehicle type
src/main/java/com/example/rental/model/VehicleType.java
Persistence
- Vehicle repository
src/main/java/com/example/rental/repository/VehicleRepository.java - Customer repository
src/main/java/com/example/rental/repository/CustomerRepository.java - Rental repository
src/main/java/com/example/rental/repository/RentalRepository.java - H2 database
Other components
- API client
Connections 3
- API client → Vehicle endpoints: manage vehicles
README.md - API client → Customer endpoints: manage customers
README.md - API client → Rental endpoints: rent or return
README.md