class AssessmentFeedbackController {

    @PostMapping("/formInput/{formInputId}")
    public
    @ResponseBody
    JsonNode updateFormInputResponse(
            @PathVariable("assessmentId") long assessmentId,
            @PathVariable("formInputId") long formInputId,
            @RequestParam("value") String value) {
        try {
            assessorFormInputResponseRestService.updateFormInputResponse(assessmentId, formInputId, value)
                    .getSuccess();
            return createJsonObjectNode(true);
        } catch (Exception e) {
            LOG.error("exception thrown updating input form response", e);
            return createJsonObjectNode(false);
        }
    }

}