Ignore:
Timestamp:
09/11/22 18:03:58 (2 years ago)
Author:
Marko <Marko@…>
Branches:
master
Children:
775e15e
Parents:
527b93f
Message:

Prototype version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/PhoneOfferController.java

    r527b93f re5b84dc  
    1616@RestController
    1717@AllArgsConstructor
    18 @RequestMapping(path = "/phones/offers/{phoneId}")
    1918public class PhoneOfferController {
    2019    private final PhoneOfferService phoneOfferService;
    2120    private final PhoneService phoneService;
    2221
    23     @GetMapping
     22    @GetMapping(path = "/phones/offers/{phoneId}")
    2423    public List<PhoneOffer> getOffersForPhone(@PathVariable("phoneId") Long phoneId){
    2524        return phoneOfferService.getPhoneOffersForPhone(phoneId);
    2625    }
    2726
     27    @GetMapping(path = "/phoneoffer/{offerId}")
     28    public PhoneOffer getPhoneOffer(@PathVariable("offerId") Long offerId){
     29        return phoneOfferService.getPhoneOffer(offerId);
     30    }
     31
    2832}
Note: See TracChangeset for help on using the changeset viewer.