POST
/
api
/
v1
/
cubic
/
attack
Attack
curl --request POST \
  --url http://50.187.81.221:4000/api/v1/cubic/attack \
  --header 'Content-Type: application/json' \
  --data '{
  "gameID": "uniqueGame123",
  "direction": "CURRENT",
  "attackingShip": {
    "teamName": "RedTeam",
    "shipName": "RedDestroyer1"
  },
  "target": {
    "teamName": "BlueTeam",
    "shipName": "BlueScout1"
  }
}'

Body

application/json

Details for a ship to perform an attack, including the game ID, the direction of attack, the attacking ship, and the target ship.

Data transfer object for a ship to perform an attack action against another ship.

Response

201

Attack successfully executed.