03. Applications/App.Api/Controllers/TokenController.cs
/// <summary>
/// Checks if the specified token is valid or not.
/// </summary>
/// <param name="command"></param>
/// <returns></returns>
Checks if the specified token is valid or not.
Checks if the specified token is valid or not .
[HttpPost("validate")]
        [SwaggerRequestExample(typeof(ValidateTokenCommand), typeof(ValidateTokenCommandExample))]
        public async Task<IActionResult> Validate(ValidateTokenCommand command)
        {
            var tokenValidationDto = await _mediator.Send(command);
            return tokenValidationDto.ToActionResult();
        }
[ HttpPost ( " " ) ] [ SwaggerRequestExample ( typeof ( ValidateTokenCommand ) , typeof ( ValidateTokenCommandExample ) ) ] public async Task < IActionResult > Validate ( ValidateTokenCommand command ) { var tokenValidationDto = await _mediator . Send ( command ) ; return tokenValidationDto . ToActionResult ( ) ; }
Checks if the specified token is valid or not.
Checks if the specified token is valid or not .
None
command
ValidateTokenCommand
None