Slide 28
Slide 28 text
Unless otherwise indicated, these slides are © 2013-2015 Pivotal Software, Inc. and licensed under a
Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/
The writing experience is unpleasant
28
@RequestMapping(method=RequestMethod.POST,
consumes=MediaType.APPLICATION_JSON_VALUE)
@ApiOperation(value = "Create a new 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)
public HttpHeaders create(@RequestBody UserInput userInput) {
…
}