Ignore:
Timestamp:
11/26/21 20:07:18 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
1ad8e64
Parents:
e29cc2e
Message:

disabling to add location if it already exists in the planner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner/src/main/java/finki/diplomska/tripplanner/web/rest/LocationRestController.java

    re29cc2e r8d391a1  
    55import finki.diplomska.tripplanner.service.LocationService;
    66import finki.diplomska.tripplanner.service.PlannerService;
     7import org.springframework.data.repository.query.Param;
    78import org.springframework.http.ResponseEntity;
    89import org.springframework.web.bind.annotation.*;
     
    7172        return this.locationService.getVillages();
    7273    }
     74
     75    @GetMapping(value = "/planner/locationIds")
     76    public List<Long> getAllLocationIdsForPlanner(@RequestParam Long plannerId){
     77        return this.locationService.getAllLocationIdsForPlanner(plannerId);
     78    }
    7379}
Note: See TracChangeset for help on using the changeset viewer.