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 Details

    • ExecutedMoveController

      @Autowired public ExecutedMoveController(ExecutedMoveService executedMoveService)
  • Method Details

    • executedMove

      @PostMapping public String executedMove(@RequestBody ExecutedMoveObject executedMoveObject)
      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.