chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.controller / DrawController / addDrawWithJson

addDrawWithJson

@PostMapping(["application/json"], ["application/json", "application/xml"]) @ResponseStatus(HttpStatus.CREATED) fun addDrawWithJson(@RequestBody drawDTO: DrawDTO, response: HttpServletResponse): ResponseEntity<Draw>

Handles the POST request for the URI /draws Params encoded as application/json

Parameters

drawDTO - Contains params as data transfer object

Author Felix Dimmel

See Also

addDraw

DrawDTO

Return Created draw

Since 1.0.0