WorkplacesControllerGet - метод
Get metadata for specified workplace. It has to be accessible by current user.
Returned metadata can be used to show workplace to the user, but not to modify it.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpGetAttribute("{id:guid}")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult<IJsonWorkplaceMetadata>> Get(
[FromRouteAttribute] Guid id,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("{id:guid}")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(204)>
Public Function Get (
<FromRouteAttribute> id As Guid,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of IJsonWorkplaceMetadata))
public:
[HttpGetAttribute(L"{id:guid}")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
Task<ActionResult<IJsonWorkplaceMetadata^>^>^ Get(
[FromRouteAttribute] Guid id,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("{id:guid}")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(204)>]
member Get :
[<FromRouteAttribute>] id : Guid *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<IJsonWorkplaceMetadata>>
- id Guid
- Identifier of workplace to get.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultIJsonWorkplaceMetadataWorkplace metadata.