1- Насколько мне известно, следующее использование в URL-адресе с кебаб-кебабом лучше, чем с CamelCase. Это правда?
Код: Выделить всё
@RequestMapping("/api/v1/fraud-check")
Код: Выделить всё
security-check
Код: Выделить всё
@GetMapping("/security-check/{customerId}/{jobId}")
public ResponseEntity getCustomerByDepartmentIdAndJobId(
@PathVariable int customerId,
@PathVariable int jobId
) {
}
Код: Выделить всё
@GetMapping("/{userId}")
Код: Выделить всё
@GetMapping("/{referenceId}")
Код: Выделить всё
@GetMapping("/references/{referenceId}")
Подробнее здесь: https://stackoverflow.com/questions/759 ... pring-boot