chessgame

RESTful chessgame developed with kotlin

View on GitHub

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

addPlayer

PlayerDTO

Return Created draw

Since 1.0.0