Changeset b738035 for trip-planner/src/main/java/finki/diplomska/tripplanner/web/rest/LocationRestController.java
- Timestamp:
- 01/24/22 21:08:32 (3 years ago)
- Branches:
- master
- Children:
- 76712b2
- Parents:
- bdd6491
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner/src/main/java/finki/diplomska/tripplanner/web/rest/LocationRestController.java
rbdd6491 rb738035 45 45 46 46 @GetMapping(value = "/region/locations") 47 public List<Location> getAllLocationsFromRegion(@RequestParam (required = false)Long regionId,48 @RequestParam (required = false)Long companionId,49 @RequestParam (required = false)Long lengthOfStay,50 @RequestParam (required = false)String categoryIds){47 public List<Location> getAllLocationsFromRegion(@RequestParam Long regionId, 48 @RequestParam Long companionId, 49 @RequestParam Long lengthOfStay, 50 @RequestParam String categoryIds){ 51 51 return this.locationService.findLocationsFromRegionForm(regionId, companionId,lengthOfStay, categoryIds); 52 52 } 53 53 54 @P utMapping(value = "/add-location")54 @PostMapping(value = "/add-location") 55 55 public Location addLocationToPlanner(@RequestBody PlannerLocationDto plannerLocationDto){ 56 56 return this.locationService.addLocationToPlanner(plannerLocationDto);
Note:
See TracChangeset
for help on using the changeset viewer.