Class CustomerController

java.lang.Object
be.appify.prefab.example.sale.infrastructure.http.CustomerController

@RestController @RequestMapping(path="customers") public class CustomerController extends Object
  • Method Details

    • create

      @RequestMapping(method=POST, path="") @PreAuthorize("hasAuthority('customer:create')") public org.springframework.http.ResponseEntity<Void> create(@Valid @RequestBody @Valid CreateCustomerRequest request)
    • getById

      @RequestMapping(method=GET, path="/{id}") @PreAuthorize("hasAuthority('customer:view')") public org.springframework.http.ResponseEntity<CustomerResponse> getById(@PathVariable String id)