Table of Contents

Class NotificationLogsController

Namespace
KadicErp.WebApi.Controllers.Notifications
Assembly
KadicErp.WebApi.dll

Historial de envíos de notificaciones (notifications.NotificationLogs). M5 del roadmap de mejoras: trazabilidad real de "¿le llegó el correo?" en vez de verificar por ausencia de warnings en Serilog. Permiso: quien puede ver templates puede auditar sus envíos.

[ApiController]
[Authorize]
[Route("api/notifications/logs")]
[Produces("application/json", new string[] { })]
[RequireModule("NOTIFICATIONS")]
public sealed class NotificationLogsController : ControllerBase
Inheritance
object
ControllerBase
NotificationLogsController

Constructors

NotificationLogsController(IMediator)

public NotificationLogsController(IMediator mediator)

Parameters

mediator IMediator

Methods

GetLogs(PaginatorRequestDto, string?, bool?, CancellationToken)

[HttpGet]
[Authorize(Policy = "NOTIFICATIONS_TEMPLATES_VIEW")]
[ProducesResponseType(typeof(PaginatorResponseDto<NotificationLogListItemDto>), 200)]
public Task<ActionResult> GetLogs(PaginatorRequestDto paginatorRequest, string? channelType, bool? success, CancellationToken cancellationToken)

Parameters

paginatorRequest PaginatorRequestDto
channelType string
success bool?
cancellationToken CancellationToken

Returns

Task<ActionResult>