Changeset 775e15e for phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/PhoneController.java
- Timestamp:
- 09/17/22 01:23:47 (2 years ago)
- Branches:
- master
- Children:
- 7e88e46
- Parents:
- e5b84dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/PhoneController.java
re5b84dc r775e15e 18 18 public class PhoneController { 19 19 private final PhoneService phoneService; 20 private final PhoneOfferService phoneOfferService;21 20 22 // handle request parameters for filtering phones23 21 @GetMapping(path = "/phones") 24 22 public List<Phone> getPhones(@RequestParam(name = "shops", required = false) String shops, … … 42 40 } 43 41 44 @GetMapping(path = "/shops")45 public List<String> getShops(){46 return phoneOfferService.getShops();47 }48 49 @GetMapping(path = "/lowestPrice")50 public int getLowestPrice()51 {52 return phoneOfferService.getLowestPrice();53 }54 55 @GetMapping(path = "/highestPrice")56 public int getHighestPrice()57 {58 return phoneOfferService.getHighestPrice();59 }60 61 62 42 }
Note:
See TracChangeset
for help on using the changeset viewer.