chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.controller / DrawController / addDrawByAi

addDrawByAi

@PostMapping(["application/x-www-form-urlencoded"], ["application/json", "application/xml"], ["/ai"]) @ResponseStatus(HttpStatus.CREATED) fun addDrawByAi(@RequestParam matchId: Int, response: HttpServletResponse): ResponseEntity<Draw>

Handles the POST request for the URI /draws/ai Params encoded as application/x-www-form-urlencode

Parameters

matchId - Match reference

Author Felix Dimmel

Return Created draw from ai server

Since 1.0.0