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 Constructor Description VouchersController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoucherWsDTOgetVoucher(java.lang.String code, java.lang.String fields)-
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
-
-
-
-
Method Detail
-
getVoucher
@Secured("ROLE_TRUSTED_CLIENT") @RequestMapping(value="/{code}", method=GET) @ResponseBody public VoucherWsDTO getVoucher(@PathVariable java.lang.String code, @RequestParam(defaultValue="BASIC") java.lang.String fields) throws VoucherOperationException- Throws:
VoucherOperationException
-
-