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

        return new ResponseEntity<>(response.getBodyAnswer(), httpHeaders, HttpStatus.valueOf(response.getResult()));
    }
@RequestMapping(method = RequestMethod.POST, value = "/registerUser")
    public ResponseEntity<String> registerUser() {
        ConfigurationHandler response =  configurationHandlerService.getConfigForRegisterUser();

        return new ResponseEntity<>(response.getBodyAnswer(), httpHeaders, HttpStatus.valueOf(response.getResult()));
    }
Processes HTTP.POST request (URL: .../registerUser).
@return ResponseEntity with string in JSON format with http status result (success or not) and user id.