curl --request POST \
--url http://50.187.81.221:4000/api/v1/cubic/moveShip \
--header 'Content-Type: application/json' \
--data '
{
"gameID": "uniqueGame123",
"direction": "FORWARD",
"movingShip": {
"teamName": "RedTeam",
"shipName": "RedScout1"
}
}
'Allows a player to move one of their ships across the game board in a specified direction, consuming move points.
curl --request POST \
--url http://50.187.81.221:4000/api/v1/cubic/moveShip \
--header 'Content-Type: application/json' \
--data '
{
"gameID": "uniqueGame123",
"direction": "FORWARD",
"movingShip": {
"teamName": "RedTeam",
"shipName": "RedScout1"
}
}
'Details for moving a ship, specifying the game ID, the direction of movement, and the ship to be moved.
Data transfer object for instructing a ship to move.
The unique identifier of the game.
The direction in which the ship should move relative to its current position.
CURRENT, UP, DOWN, LEFT, RIGHT, FORWARD, BACK The ship that is performing the move action.
Show child attributes
Ship successfully moved.