- Timestamp:
- 09/21/22 18:46:15 (2 years ago)
- Branches:
- master
- Children:
- d66b8eb
- Parents:
- 7e88e46
- Location:
- phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/PhoneOfferController.java
r7e88e46 r5201690 7 7 import lombok.AllArgsConstructor; 8 8 import org.springframework.beans.factory.annotation.Autowired; 9 import org.springframework.web.bind.annotation.GetMapping; 10 import org.springframework.web.bind.annotation.PathVariable; 11 import org.springframework.web.bind.annotation.RequestMapping; 12 import org.springframework.web.bind.annotation.RestController; 9 import org.springframework.web.bind.annotation.*; 13 10 14 11 import java.util.List; … … 22 19 public List<PhoneOffer> getOffersForPhone(@PathVariable("phoneId") Long phoneId){ 23 20 return phoneOfferService.getPhoneOffersForPhone(phoneId); 21 } 22 23 @GetMapping(path = "/multipleoffers") 24 public List<PhoneOffer> getPhoneOffer(@RequestParam("offerIds") String offerIds){ 25 return phoneOfferService.getMultiplePhoneOffers(offerIds); 26 } 27 28 @GetMapping(path = "/phoneoffer/shop/{shop}") 29 public List<PhoneOffer> getOffersFromShop(@PathVariable("shop") String shop){ 30 return phoneOfferService.getOffersFromShop(shop); 24 31 } 25 32
Note:
See TracChangeset
for help on using the changeset viewer.