OperationsControllerPostCreate - метод

Create operation with specified attributes. Operation can be created with state InProgress, if flag CreateInProgress is specified in the request.

Return 201 (Created), or 409 (Conflict) if operation with that identifier already exists.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpPostAttribute("{id:guid}")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(201)]
[ProducesResponseTypeAttribute(409)]
public Task<ActionResult> PostCreate(
	[FromRouteAttribute] Guid id,
	[FromBodyAttribute] CreateOperationRequest request,
	CancellationToken cancellationToken = default
)

Параметры

id  Guid
Identifier of operation to create.
request  CreateOperationRequest
Request to create operation.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

Возвращаемое значение

TaskActionResult
Identifier of created operation.

См. также