Class GiftVoucherController
java.lang.Object
be.appify.prefab.example.sale.infrastructure.http.GiftVoucherController
@RestController
@RequestMapping(path="gift-vouchers")
public class GiftVoucherController
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> create(@Valid CreateGiftVoucherRequest request) org.springframework.http.ResponseEntity<GiftVoucherResponse> org.springframework.http.ResponseEntity<org.springframework.data.web.PagedModel<GiftVoucherResponse>>
-
Method Details
-
create
@RequestMapping(method=POST, path="") @PreAuthorize("hasAuthority('gift-voucher:create')") public org.springframework.http.ResponseEntity<Void> create(@Valid @RequestBody @Valid CreateGiftVoucherRequest request) -
getById
@RequestMapping(method=GET, path="/{id}") @PreAuthorize("hasAuthority('gift-voucher:view')") public org.springframework.http.ResponseEntity<GiftVoucherResponse> getById(@PathVariable String id) -
getList
@RequestMapping(method=GET, path="") @PreAuthorize("hasAuthority('gift-voucher:view')") public org.springframework.http.ResponseEntity<org.springframework.data.web.PagedModel<GiftVoucherResponse>> getList(org.springframework.data.domain.Pageable pageable, String code)
-