diff --git a/MessagingService/Controllers/EmailController.cs b/MessagingService/Controllers/EmailController.cs index 666b42e..935bbd8 100644 --- a/MessagingService/Controllers/EmailController.cs +++ b/MessagingService/Controllers/EmailController.cs @@ -58,7 +58,8 @@ public EmailController(IMediator mediator) /// [HttpPost] [Route("")] - [ProducesResponseType(typeof(SendEmailResponseDTO), 201)] + [SwaggerResponse(201, "Created", typeof(SendEmailResponseDTO))] + [SwaggerResponseExample(201, typeof(SendEmailResponseExample))] public async Task SendEmail([FromBody] SendEmailRequestDTO sendEmailRequest, CancellationToken cancellationToken) { diff --git a/MessagingService/Controllers/SMSController.cs b/MessagingService/Controllers/SMSController.cs index e9b89fa..0014f8c 100644 --- a/MessagingService/Controllers/SMSController.cs +++ b/MessagingService/Controllers/SMSController.cs @@ -51,7 +51,8 @@ public SMSController(IMediator mediator) /// [HttpPost] [Route("")] - [ProducesResponseType(typeof(SendSMSResponse), 201)] + [SwaggerResponse(201, "Created", typeof(SendSMSResponse))] + [SwaggerResponseExample(201, typeof(SendSMSResponseExample))] public async Task SendSMS([FromBody] SendSMSRequest sendSMSRequest, CancellationToken cancellationToken) {