Open session to login user by login/password pair. Returns session token in XML form, consumer should supply it to other web requests to authenticate.
Also returns platform version in Version header. And miniature auth token in Session header, that can be used to authenticate instead of token with excess info on the session, which is being returned as method result.
[HttpPostAttribute("open")]
[TypedJsonBodyAttribute(ConvertPascalCasing = true)]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("text/plain", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<string>> PostOpen(
[FromBodyAttribute] OpenSessionLegacy3XRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("open")>
<TypedJsonBodyAttribute(ConvertPascalCasing := true)>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("text/plain", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostOpen (
<FromBodyAttribute> request As OpenSessionLegacy3XRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of String))
public:
[HttpPostAttribute(L"open")]
[TypedJsonBodyAttribute(ConvertPascalCasing = true)]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"text/plain", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<String^>^>^ PostOpen(
[FromBodyAttribute] OpenSessionLegacy3XRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("open")>]
[<TypedJsonBodyAttribute(ConvertPascalCasing = true)>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("text/plain", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostOpen :
[<FromBodyAttribute>] request : OpenSessionLegacy3XRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<string>>