user", notes = "The name " + "of the user must be at least four characters in length.") @ApiResponses({ @ApiResponse(code = 400, message = "Bad request"), @ApiResponse(code = 201, message = "User created")}) @ResponseStatus(HttpStatus.CREATED) @RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE) public HttpHeaders create(@RequestBody UserInput userInput) { … }