Http Action Naming (ARCH4004)
Key java.naming.route-handler-naming · Severity info · Category naming
Web framework route handler / controller action names should match their HTTP verb semantics (GET → get/list, POST → create) for RESTful consistency and readable intent.
Incorrect
Section titled “Incorrect”@RestControllerclass UserController { @PostMapping("/users") public User getUser(@RequestBody UserDto dto) { ... } // POST but "get"}Correct
Section titled “Correct”@RestControllerclass UserController { @PostMapping("/users") public User createUser(@RequestBody UserDto dto) { ... }}Align the handler name with its HTTP verb (POST → create, GET → get/list).