Mapping annotations associate a method with an HTTP method and a path: @GetMapping, @PostMapping, @PutMapping, @PatchMapping, @DeleteMapping, and @RequestMapping on the class for a common prefix. Each verb corresponds to an operation on the resource.
Example
@PostMapping("/clients")
Client creer(@RequestBody ClientDto dto) { return service.creer(dto); }