chessgame

RESTful chessgame developed with kotlin

View on GitHub

htwdd.chessgame.server.controller / PlayerController / addPlayer

addPlayer

@PostMapping(["application/x-www-form-urlencoded"], ["application/json", "application/xml"]) @ResponseStatus(HttpStatus.CREATED) fun addPlayer(@RequestParam name: String, @RequestParam password: String, response: HttpServletResponse): ResponseEntity<Player>

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

Parameters

name - The name of the player

password - The password of the player

Author Felix Dimmel

Return Created match

Since 1.0.0