SchemeControllerPutProcedure - метод
Save procedure, creating new one or modifying existent.
Method is available for administrators only.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPutAttribute("procedures/{id:guid}")]
[DisableRequestSizeLimitAttribute]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(201)]
public ValueTask<IActionResult> PutProcedure(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] PlainSchemeProcedure procedure,
CancellationToken cancellationToken = default
)
<HttpPutAttribute("procedures/{id:guid}")>
<DisableRequestSizeLimitAttribute>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(201)>
Public Function PutProcedure (
<FromRouteAttribute> id As Guid,
<FromBodyAttribute> procedure As PlainSchemeProcedure,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of IActionResult)
public:
[HttpPutAttribute(L"procedures/{id:guid}")]
[DisableRequestSizeLimitAttribute]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(201)]
ValueTask<IActionResult^> PutProcedure(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] PlainSchemeProcedure^ procedure,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPutAttribute("procedures/{id:guid}")>]
[<DisableRequestSizeLimitAttribute>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(201)>]
member PutProcedure :
[<FromRouteAttribute>] id : Guid *
[<FromBodyAttribute>] procedure : PlainSchemeProcedure *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<IActionResult>
- id Guid
- Identifier of procedure to save.
- procedure PlainSchemeProcedure
- Procedure to save.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
ValueTaskIActionResult204 (No Content).