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 WaypointController {
@GetMapping("/get/{id}")
public ResponseEntity<WaypointsEntity> getWaypointById(@PathVariable("id") Long id) {
WaypointsEntity waypoint = waypointService.getWaypointByIdService(id);
WaypointsEntity waypoint = waypointService.getWaypointById(id);
if (waypoint != null) {
return new ResponseEntity<>(waypoint, HttpStatus.OK);
} else {
@@ -37,7 +37,7 @@ public class WaypointController {
@GetMapping("/get/name/{name}")
public ResponseEntity<WaypointsEntity> getWaypointByName(@PathVariable("name") String name) {
WaypointsEntity waypoint = waypointService.getWaypointByNameService(name);
WaypointsEntity waypoint = waypointService.getWaypointByName(name);
if (waypoint != null) {
return new ResponseEntity<>(waypoint, HttpStatus.OK);
} else {