CardsControllerPostNew - метод
Создаёт пустой объект карточки. Физически карточка не создаётся в базе данных.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 3.6.0.22
[HttpPostAttribute("new")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<CardNewResponse>> PostNew(
[FromBodyAttribute] CardNewRequest request,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("new")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostNew (
<FromBodyAttribute> request As CardNewRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of CardNewResponse))
public:
[HttpPostAttribute(L"new")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<CardNewResponse^>^>^ PostNew(
[FromBodyAttribute] CardNewRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("new")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostNew :
[<FromBodyAttribute>] request : CardNewRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<CardNewResponse>>
- request CardNewRequest
- Запрос на создание карточки.
- cancellationToken CancellationToken (Optional)
- Объект, посредством которого можно отменить асинхронную задачу.
TaskActionResultCardNewResponseОтвет на запрос на создание карточки.