ContentController.GetTokenAsync - метод

Get token for requesting content with type, specified in request.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.5
C#
[HttpPostAttribute("token")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> GetTokenAsync(
	[FromBodyAttribute] ContentTokenRequest request,
	CancellationToken cancellationToken = default
)

Параметры

request  ContentTokenRequest
Request to get token.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

Возвращаемое значение

Task<IActionResult>
Response to the request or status BadRequest if there are no registered handlers for requested type.

См. также