src/NasaRover.API/Controllers/api/TerrainController.cs
/// <summary>
/// Add an obstacle to 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>
Add an obstacle to the terrain
It does nothing if it already exists
Add an obstacle to the terrain It does nothing if it already exists
[HttpPost("{id}/Obstacle")]
    public void AddObstacle(Guid id, int x, int y)
    {
        _terrainService.AddObstacle(id, x, y);
    }
[ HttpPost ( " " ) ] public void AddObstacle ( Guid id , int x , int y ) { _terrainService . AddObstacle ( id , x , y ) ; }
Add an obstacle to the terrain
It does nothing if it already exists
Add an obstacle to 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