Class VouchersController
java.lang.Object
de.hybris.platform.ycommercewebservices.v2.controller.BaseController
de.hybris.platform.ycommercewebservices.v2.controller.VouchersController
@Controller
@RequestMapping("/{baseSiteId}/vouchers")
public class VouchersController
extends BaseController
-
Field Summary
Fields inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_FIELD_SET, DEFAULT_PAGE_SIZE, HEADER_TOTAL_COUNT, INVALID_REQUEST_BODY_ERROR_MESSAGE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
Constructor Details
-
VouchersController
public VouchersController()
-
-
Method Details
-
getVoucher
@Secured("ROLE_TRUSTED_CLIENT") @RequestMapping(value="/{code}", method=GET) @ResponseBody public VoucherWsDTO getVoucher(@PathVariable String code, @RequestParam(defaultValue="BASIC") String fields) throws VoucherOperationException - Throws:
VoucherOperationException
-