- Timestamp:
- 10/18/21 00:19:16 (3 years ago)
- Branches:
- master
- Children:
- 188ee53
- Parents:
- fa375fe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner/src/main/java/finki/diplomska/tripplanner/web/rest/LocationRestController.java
rfa375fe reed0bf8 34 34 } 35 35 36 @ PostMapping(value = "/trip/locations")37 public List<Location> allLocationsAfterSubmittedForm(@RequestParam(required = false) String locName,38 @RequestParam(required = false) String companion,39 @RequestParam(required = false) String region,40 @RequestParam(required = false) List<String> categories,41 @RequestParam(required = false) int numberOfDays) {42 List<Location> generatedLocations = this.locationService.scheduleLocations(locName, companion, region, categories, numberOfDays);36 @GetMapping(value = "/trip/locations") 37 public List<Location> allLocationsAfterSubmittedForm(@RequestParam(required = false) Long locationId, 38 @RequestParam(required = false) Long companionId, 39 @RequestParam(required = false) Long lengthOfStay, 40 @RequestParam(required = false) String categoryIds) { 41 return this.locationService.findLocations(locationId, companionId, lengthOfStay, categoryIds); 42 /* List<Location> generatedLocations = this.locationService.scheduleLocations(locName, companion, region, categories, numberOfDays); 43 43 if(locName.equals("Macedonia")){ 44 44 return generatedLocations; 45 45 }else{ 46 46 return generatedLocations; 47 } 47 }*/ 48 48 } 49 49 }
Note:
See TracChangeset
for help on using the changeset viewer.