< Summary

Information
Class: Syki.Back.Features.Academic.GetDisciplines.GetDisciplinesController
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/GetDisciplines/GetDisciplinesController.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 20
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
Get()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/GetDisciplines/GetDisciplinesController.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.GetDisciplines;
 2
 3/// <summary>
 4/// Retorna todas as Disciplinas.
 5/// Caso informe o "CourseId", filtra as Disciplinas vinculadas com o Curso informado.
 6/// </summary>
 7[ApiController, AuthAcademic]
 8[EnableRateLimiting("Medium")]
 9[Consumes("application/json"), Produces("application/json")]
 110public class GetDisciplinesController(GetDisciplinesService service) : ControllerBase
 11{
 12    [HttpGet("academic/disciplines")]
 13    [ProducesResponseType(200)]
 14    public async Task<IActionResult> Get([FromQuery] Guid? courseId)
 15    {
 116        var disciplines = await service.Get(User.InstitutionId(), courseId);
 17
 118        return Ok(disciplines);
 119    }
 20}