UserInfoControllerGetUserInfo - метод
Gets user information for single user with specified identifier.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
[HttpGetAttribute("{id:guid}")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[TypedJsonBodyAttribute]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
public Task<ActionResult<UserInfo>> GetUserInfo(
[FromRouteAttribute] Guid id,
[FromQueryAttribute] string? type = null,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("{id:guid}")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<TypedJsonBodyAttribute>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(204)>
Public Function GetUserInfo (
<FromRouteAttribute> id As Guid,
<FromQueryAttribute> Optional type As String = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of UserInfo))
public:
[HttpGetAttribute(L"{id:guid}")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[TypedJsonBodyAttribute]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
Task<ActionResult<UserInfo^>^>^ GetUserInfo(
[FromRouteAttribute] Guid id,
[FromQueryAttribute] String^ type = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("{id:guid}")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<TypedJsonBodyAttribute>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(204)>]
member GetUserInfo :
[<FromRouteAttribute>] id : Guid *
[<FromQueryAttribute>] ?type : string *
?cancellationToken : CancellationToken
(* Defaults:
let _type = defaultArg type null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<UserInfo>>
- id Guid
- The user identifier.
- type String (Optional)
-
Optional user info handler type.
If , the default handler is used.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultUserInfoUser information or
user not found by identifier.