src/NasaRover.API/Controllers/api/TerrainController.cs
/// <summary>
/// Remove an obstacle from the terrain
/// <para>It does nothing if it already exists</para>
/// </summary>
/// <param name="id">The terrain id</param>
/// <param name="x">The obstacle location x on the terrain</param>
/// <param name="y">The obstacle location y on the terrain</param>
Remove an obstacle from the terrain
It does nothing if it already exists
Remove an obstacle from the terrain It does nothing if it already exists
[HttpDelete("{id}/Obstacle")]
    public void DeleteObstacle(Guid id, int x, int y)
    {
        _terrainService.RemoveObstacle(id, x, y);
    }
[ HttpDelete ( " " ) ] public void DeleteObstacle ( Guid id , int x , int y ) { _terrainService . RemoveObstacle ( id , x , y ) ; }
Remove an obstacle from the terrain
It does nothing if it already exists
Remove an obstacle from the terrain It does nothing if it already exists
id
Guid
The terrain id
The terrain id
x
int
The obstacle location x on the terrain
The obstacle location x on the terrain
y
int
The obstacle location y on the terrain
The obstacle location y on the terrain