chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.controller / MatchController / getMatchById

getMatchById

@GetMapping(["application/json", "application/xml"], ["/{id}"]) @ResponseBody fun getMatchById(@PathVariable id: Int, @RequestParam(false, "includePieceSets", "true") includePieceSets: Boolean, @RequestParam(false, "includeHistory", "true") includeHistory: Boolean, response: HttpServletResponse): ResponseEntity<Match>

Handles the GET request for the URI /matches/{id}

Parameters

id - Identifier for a single match

includePieceSets - Returned match contains the pieceSets

includeHistory - Returned match contains the history (list of draws)

Author Felix Dimmel

Return Single match by an id

Since 1.0.0