htwdd.chessgame.server.controller / MatchController / addMatch
addMatch
@PostMapping(["application/x-www-form-urlencoded"], ["application/json", "application/xml"]) @ResponseStatus(HttpStatus.CREATED) fun addMatch(@RequestParam playerWhiteId:
Int
, @RequestParam playerBlackId:
Int
, response: HttpServletResponse): ResponseEntity<
Match
>
Handles the POST request for the URI /matches Params encoded as application/x-www-form-urlencode
Parameters
playerWhiteId
- Player reference for the color white
playerBlackId
- Player reference for the color black
Author Felix Dimmel
Return Created draw
Since 1.0.0