WidgetTemplatesControllerGetTemplate - метод

Retrieves the widget template by template identifier.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
[HttpGetAttribute("{templateID:guid}")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[TypedJsonBodyAttribute]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<WidgetTemplateData?>> GetTemplate(
	[FromRouteAttribute] Guid templateID,
	[FromQueryAttribute] DashboardType dashboardType,
	[FromQueryAttribute] string? token = null,
	CancellationToken cancellationToken = default
)

Параметры

templateID  Guid
Widget template identifier.
dashboardType  DashboardType
Dashboard types.
token  String  (Optional)
Serialized token used for widget access control.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskActionResultWidgetTemplateData
OObject with the found WidgetTemplateData, if any, and an optional updated DashboardToken.

См. также