From 1761c80234f72b22a38ff31e895147e4fc3375de Mon Sep 17 00:00:00 2001 From: Stuart Ferguson Date: Wed, 14 Apr 2021 18:57:29 +0100 Subject: [PATCH] Revert some of the last changes --- MessagingService/Controllers/EmailController.cs | 3 ++- MessagingService/Controllers/SMSController.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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) {