How skander101/autoloc_api works
AutoLoc is a Spring Boot REST API for car rental management. Clients call resource controllers, which delegate CRUD operations to business services; services use Spring Data repositories backed by JPA domain entities. The model covers clients, vehicles and branches, reservations, contracts and payments, plus equipment, employees and maintenance. The README identifies MySQL as the database. The graph reflects the documented and indexed layers; unsampled controller and service implementations are represented at their exact enclosing directories.
Main entry points: repository Data repositories · controller Resource controllers · service Business services · domain Rental domain
Components 6
REST API
- Resource controllers
src/main/java/tn/esprit/autoloc/web/controller
Rental Operations
- Business services
src/main/java/tn/esprit/autoloc/service
Persistence
- Data repositories
src/main/java/tn/esprit/autoloc/repository - Rental domain
src/main/java/tn/esprit/autoloc/domain
Other components
- API clients
- MySQL database
Connections 5
- API clients → Resource controllers: sends requests
src/main/java/tn/esprit/autoloc/web/controller/VehiculeController.java - Resource controllers → Business services: delegates operations
src/main/java/tn/esprit/autoloc/web/controller/VehiculeController.java - Business services → Data repositories: reads and writes
src/main/java/tn/esprit/autoloc/service/ReservationService.java - Data repositories → Rental domain: persists entities
src/main/java/tn/esprit/autoloc/repository/ReservationRepository.java - Data repositories → MySQL database: stores data