< Summary - Estud

Information
Class: Estud.Back.Features.Webhooks.GetWebhookCalls.GetWebhookCallsController
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Webhooks/GetWebhookCalls/GetWebhookCallsController.cs
Tag: 114_29044117136
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 21
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/Webhooks/GetWebhookCalls/GetWebhookCallsController.cs

#LineLine coverage
 1namespace Estud.Back.Features.Webhooks.GetWebhookCalls;
 2
 3[ApiController, Authorize(Policies.GetWebhookCalls)]
 104public class GetWebhookCallsController(GetWebhookCallsService service) : ControllerBase
 5{
 6    /// <summary>
 7    /// Chamadas de webhook
 8    /// </summary>
 9    /// <remarks>
 10    /// Retorna a lista paginada de chamadas de webhook da instituição, da mais recente para a mais antiga.
 11    /// </remarks>
 12    [HttpGet("webhooks/calls")]
 13    [SwaggerResponseExample(200, typeof(ResponseExamples))]
 14    public async Task<IActionResult> Get([FromQuery] GetWebhookCallsIn data)
 15    {
 1016        var calls = await service.Get(data);
 1017        return Ok(calls);
 1018    }
 19}
 20
 21internal class ResponseExamples : ExamplesProvider<GetWebhookCallsOut>;