htwdd.chessgame.server.controller / PlayerController / addPlayerWithJson
addPlayerWithJson
@PostMapping(["application/json"], ["application/json", "application/xml"]) @ResponseStatus(HttpStatus.CREATED) @ResponseBody fun addPlayerWithJson(@RequestBody playerDTO: PlayerDTO, response: HttpServletResponse): ResponseEntity<Player>
Handles the POST request for the URI /players Params encoded as application/json
Parameters
playerDTO - Contains params as data transfer object
Author Felix Dimmel
See Also
Return Created draw
Since 1.0.0