< Summary - Syki

Information
Class: Syki.Back.Features.Academic.ReprocessWebhookCall.ReprocessWebhookCallController
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/ReprocessWebhookCall/ReprocessWebhookCallController.cs
Tag: 4_16869239191
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 24
Line coverage: 0%
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%210%
Reprocess()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/ReprocessWebhookCall/ReprocessWebhookCallController.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.ReprocessWebhookCall;
 2
 3[ApiController, AuthAcademic]
 4[EnableRateLimiting("Medium")]
 05public class ReprocessWebhookCallController(ReprocessWebhookCallService service) : ControllerBase
 6{
 7    /// <summary>
 8    /// Reprocessar Webhook
 9    /// </summary>
 10    /// <remarks>
 11    /// Reprocessa uma chamada de Webhook.
 12    /// </remarks>
 13    [HttpPost("academic/webhooks/calls/{id}/reprocess")]
 14    [SwaggerResponseExample(200, typeof(ResponseExamples))]
 15    [SwaggerResponseExample(400, typeof(ErrorsExamples))]
 16    public async Task<IActionResult> Reprocess([FromRoute] Guid id)
 17    {
 018        var result = await service.Reprocess(User.InstitutionId, id);
 019        return result.Match<IActionResult>(Ok, BadRequest);
 020    }
 21}
 22
 23internal class ResponseExamples : ExamplesProvider<SuccessOut>;
 24internal class ErrorsExamples : ErrorExamplesProvider<WebhookCallNotFound>;