sources/src/Monetco.Host/Controllers/SimulatorController.cs
/// <summary>
/// Get all responses for chosen ID
/// </summary>
/// <param name="id">additional ID from URL</param>
/// <returns>List of responses</returns>
//[SwaggerOperation(Tags = new[] { "Test" })]
Get all responses for chosen ID
Get all responses for chosen ID
[HttpGet("{id}/responses")]
        public List<SimulatorResponse> GetById([FromRoute]string id)
        {
            if (_service.GetResponsesById(id) != null)
            {
                return _service.GetResponsesById(id);
            }
            return new List<SimulatorResponse>();
        }
[ HttpGet ( " " ) ] public List < SimulatorResponse > GetById ( [ FromRoute ] string id ) { if ( _service . GetResponsesById ( id ) != null ) { return _service . GetResponsesById ( id ) ; } return new List < SimulatorResponse > ( ) ; }
Get all responses for chosen ID
Get all responses for chosen ID
List of responses
List of responses
string
[FromRoute]
id
additional ID from URL
additional ID from URL