Merge branch 'zalan' into 'master'
find Real customer api (inconvinence) See merge request bossanyit/aitrainer_server!12
This commit is contained in:
@@ -23,7 +23,13 @@ class CustomerController ( private val customerRepository: CustomerRepository )
|
||||
return customerRepository.findById(customerId).map { customer ->
|
||||
ResponseEntity.ok(customer)
|
||||
}.orElse(ResponseEntity.notFound().build())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/customers/real")
|
||||
fun getRealCustomers(active: String): List<Customer> =
|
||||
customerRepository.findRealCustomers(active)
|
||||
|
||||
|
||||
@PutMapping("/customers/{id}")
|
||||
fun updateCustomerById(@PathVariable(value = "id") customerId: Long,
|
||||
|
||||
Reference in New Issue
Block a user