Java/JDI/jdi-mock-rest/src/main/java/com/epam/mock/web/ConfigurationHandlerController.java
@RequestMapping(method = RequestMethod.PATCH, value = "/updateUserField")
    public ResponseEntity<Void> updateUserField() {
        ConfigurationHandler response =  configurationHandlerService.getConfigForUpdateUserField();

        return new ResponseEntity<>(HttpStatus.valueOf(response.getResult()));
    }
@RequestMapping(method = RequestMethod.PATCH, value = "/updateUserField")
    public ResponseEntity<Void> updateUserField() {
        ConfigurationHandler response =  configurationHandlerService.getConfigForUpdateUserField();

        return new ResponseEntity<>(HttpStatus.valueOf(response.getResult()));
    }
@ RequestMapping ( method = RequestMethod . PATCH , value = "/updateUserField" ) public ResponseEntity < Void > updateUserField ( ) { ConfigurationHandler response = configurationHandlerService . getConfigForUpdateUserField ( ) ; return new ResponseEntity <> ( HttpStatus . valueOf ( response . getResult ( ) ) ) ; }
Processes HTTP.PATCH request (URL: .../updateUserField).
@return ResponseEntity with http status result (success or not).
Processes HTTP . PATCH request ( URL : ... / updateUserField ) .