Added Lombok and created api fow WaypointsVisitedEntity

This commit is contained in:
grata
2023-04-27 14:02:50 +02:00
parent 69a0e6d271
commit 0bc69c9808
13 changed files with 195 additions and 140 deletions

View File

@@ -27,7 +27,7 @@ public class LocationController {
@GetMapping("/get/{id}")
public ResponseEntity<LocationEntity> getLocationById(@PathVariable("id") Long id) {
LocationEntity location = locationService.getLocationByIdService(id);
LocationEntity location = locationService.getLocationById(id);
if (location != null) {
return new ResponseEntity<>(location, HttpStatus.OK);
} else {
@@ -37,7 +37,7 @@ public class LocationController {
@GetMapping("/get/name/{name}")
public ResponseEntity<LocationEntity> getLocationByName(@PathVariable("name") String name) {
LocationEntity location = locationService.getLocationByNameService(name);
LocationEntity location = locationService.getLocationByName(name);
if (location != null) {
return new ResponseEntity<>(location, HttpStatus.OK);
} else {