CardsControllerPostRequest - метод
Perform universal query to cards API with specified attributes.
It executes any business logic registered for specified
RequestType.
Operation can be linked to specific card
CardID or it can be linked to no card.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPostAttribute("request")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<CardResponse>> PostRequest(
[FromBodyAttribute] CardRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("request")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostRequest (
<FromBodyAttribute> request As CardRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of CardResponse))
public:
[HttpPostAttribute(L"request")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<CardResponse^>^>^ PostRequest(
[FromBodyAttribute] CardRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("request")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostRequest :
[<FromBodyAttribute>] request : CardRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<CardResponse>>
- request CardRequest
- Request to universal cards API.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultCardResponseResponse to the request.