Class CouponCodesController


  • @Controller
    @RequestMapping("/couponcodes")
    public class CouponCodesController
    extends java.lang.Object
    Coupon codes REST API controller
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected CouponCodeGenerationWsFacade getCouponCodeGenerationWsFacade()  
      org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getGeneratedCouponCodes​(java.lang.String couponId, java.lang.String mediaCode)
      Request to get generated coupon codes for a multi-code coupon with given couponId and mediaCode corresponding to the code batch
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CouponCodesController

        public CouponCodesController()
    • Method Detail

      • getGeneratedCouponCodes

        @RequestMapping(value="/{couponId}/{mediaCode}",
                        method=GET,
                        produces="application/text")
        @ResponseBody
        public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getGeneratedCouponCodes​(@PathVariable("couponId")
                                                                                                                                java.lang.String couponId,
                                                                                                                                @PathVariable("mediaCode")
                                                                                                                                java.lang.String mediaCode)
        Request to get generated coupon codes for a multi-code coupon with given couponId and mediaCode corresponding to the code batch
        Parameters:
        couponId - the couponId of the requested coupon
        mediaCode - the identifier of the requested code batch
        Returns:
        Stream of Media data with the requested coupon codes