src/NasaRover.API/Controllers/api/TerrainController.cs
/// <summary>
/// Add obstacles to the terrain
/// <para>It does nothing if it already exists</para>
/// </summary>
/// <param name="id">The terrain id</param>
/// <param name="obstacles">The obstacle location on the terrain</param>
Add obstacles to the terrain
It does nothing if it already exists
Add obstacles to the terrain It does nothing if it already exists
[HttpPost("{id}/Obstacles")]
    public void AddObstacles(Guid id, [FromBody] IEnumerable<Location> obstacles)
    {
        _terrainService.AddObstacles(id, obstacles);
    }
[ HttpPost ( " " ) ] public void AddObstacles ( Guid id , [ FromBody ] IEnumerable < Location > obstacles ) { _terrainService . AddObstacles ( id , obstacles ) ; }
Add obstacles to the terrain
It does nothing if it already exists
Add obstacles to the terrain It does nothing if it already exists
id
Guid
The terrain id
The terrain id
IEnumerable<Location>
[FromBody]
obstacles
The obstacle location on the terrain
The obstacle location on the terrain