LAYERS
● Entities ➤ City
● Data Access Layer ➤ ICityDal, HibernateCityDal(@Repository)
● Business Layer ➤ ICityService, CityManager(@Service)
● RestApi ➤ CityController(@RestController)
You have to define your mySQL username and password parts in 'src -> main -> resources -> application.properties' file.
Required dependencies are given with 'pom.xml' and the World Database 'world.sql' file at the root folder.
For get the project up: You can run main package as Java Application or Spring Boot Application.
As you can see in the CityController:
localhost:8080/api
localhost:8080/api/cities
localhost:8080/api/cities/{id}
localhost:8080/api/add
localhost:8080/api/update
localhost:8080/api/delete