Class ExecutedMoveController
java.lang.Object
com.chess.backend.restController.controller.ExecutedMoveController
@RestController
@CrossOrigin
@RequestMapping("/executedMove")
public class ExecutedMoveController
extends Object
This class handles the API-call regarding the executed move for a piece.
- Author:
- Hannes Stuetzer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecutedMove
(ExecutedMoveObject executedMoveObject) Method that is called on a post request.
-
Constructor Details
-
ExecutedMoveController
-
-
Method Details
-
executedMove
Method that is called on a post request.- Parameters:
executedMoveObject
- in the request body (json object).- Returns:
- true (and HttpStatus.OK (200)) if move was successful and false (and HttpStatus.BAD_REQUEST (400)) if the move was not successful.
-