WidgetTemplatesControllerGetTemplate - метод
Retrieves the widget template by template identifier.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
[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
)
<HttpGetAttribute("{templateID:guid}")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<TypedJsonBodyAttribute>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetTemplate (
<FromRouteAttribute> templateID As Guid,
<FromQueryAttribute> dashboardType As DashboardType,
<FromQueryAttribute> Optional token As String = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of WidgetTemplateData))
public:
[HttpGetAttribute(L"{templateID:guid}")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[TypedJsonBodyAttribute]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<WidgetTemplateData^>^>^ GetTemplate(
[FromRouteAttribute] Guid templateID,
[FromQueryAttribute] DashboardType dashboardType,
[FromQueryAttribute] String^ token = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("{templateID:guid}")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<TypedJsonBodyAttribute>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetTemplate :
[<FromRouteAttribute>] templateID : Guid *
[<FromQueryAttribute>] dashboardType : DashboardType *
[<FromQueryAttribute>] ?token : string *
?cancellationToken : CancellationToken
(* Defaults:
let _token = defaultArg token null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<WidgetTemplateData>>
- 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.
TaskActionResultWidgetTemplateDataOObject with the found
WidgetTemplateData, if any, and an optional updated
DashboardToken.