Class CustomerController

java.lang.Object
io.github.mspr4_2025.customers_service.controller.CustomerController

@RestController @RequestMapping("/api/customers") public class CustomerController extends Object
  • Constructor Details

    • CustomerController

      public CustomerController()
  • Method Details

    • listCustomers

      @GetMapping("/") public org.springframework.http.ResponseEntity<List<CustomerDto>> 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

      @DeleteMapping("/{uid}") public org.springframework.http.ResponseEntity<Void> deleteCustomer(@PathVariable UUID uid)