Class CustomerController
java.lang.Object
be.appify.prefab.example.sale.infrastructure.http.CustomerController
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> create(@Valid CreateCustomerRequest request) org.springframework.http.ResponseEntity<CustomerResponse>
-
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)
-