src/NasaRover.API/Controllers/api/RoverController.cs
/// <summary>
/// Get a rover by its name
/// </summary>
/// <param name="name">The rover name</param>
Get a rover by its name
Get a rover by its name
[HttpGet("ByName/{name}")]
    public RoverModel? Get(string name)
    {
        var rover = _roverService.Get(name);
        if (rover == null)
        {
            return null;
        }
        return rover;
    }
[ HttpGet ( " " ) ] public RoverModel ? Get ( string name ) { var rover = _roverService . Get ( name ) ; if ( rover == null ) { return null ; } return rover ; }
Get a rover by its name
Get a rover by its name
name
string
The rover name
The rover name