Class CustomerController
java.lang.Object
io.github.mspr4_2025.customers_service.controller.CustomerController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<Void> createCustomer
(CustomerCreateDto customerCreate) org.springframework.http.ResponseEntity
<Void> deleteCustomer
(UUID uid) org.springframework.http.ResponseEntity
<CustomerDto> getCustomerByUid
(UUID uid) org.springframework.http.ResponseEntity
<List<CustomerDto>> org.springframework.http.ResponseEntity
<Void> updateCustomer
(UUID uid, CustomerUpdateDto customerUpdate)
-
Constructor Details
-
CustomerController
public CustomerController()
-
-
Method Details
-
listCustomers
-
createCustomer
@PostMapping("/") public org.springframework.http.ResponseEntity<Void> createCustomer(@RequestBody CustomerCreateDto customerCreate) -
getCustomerByUid
@GetMapping("/{uid}") public org.springframework.http.ResponseEntity<CustomerDto> getCustomerByUid(@PathVariable UUID uid) -
updateCustomer
@PutMapping("/{uid}") public org.springframework.http.ResponseEntity<Void> updateCustomer(@PathVariable UUID uid, @RequestBody CustomerUpdateDto customerUpdate) -
deleteCustomer
-