public class VouchersController extends BaseController
DEFAULT_CURRENT_PAGE, DEFAULT_PAGE_SIZE| Constructor and Description |
|---|
VouchersController() |
| Modifier and Type | Method and Description |
|---|---|
VoucherData |
getVoucherByCode(java.lang.String code)
Web service for getting voucher information by voucher code.
Sample call: https://localhost:9002/rest/v1/mysite/vouchers/abc-9PSW-EDH2-RXKA This method requires authentication. Method type : GET.Method is restricted for HTTPS channel. |
handleErrorInternal, handleModelNotFoundException, sanitizepublic VoucherData getVoucherByCode(java.lang.String code) throws VoucherOperationException
GET.HTTPS channel.code - - voucher code - must be given as path variable.VoucherData which will be marshaled to JSON or XML based on Accept-HeaderVoucherOperationException - if voucher cannot be foundCopyright © 2018 SAP SE. All Rights Reserved.