CompilationControllerPostGetSourcesFile - метод
Get script sources as file with specified attributes as
multipart/form-data,
where first part with name
"Response" is
ValidationResult serialized as typed JSON
application/json,
and second part with name
"Content" (if its present) is binary file contents
application/octet-stream
with recommended file name in
Content-Disposition header.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
[HttpPostAttribute("get-sources-file")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("multipart/form-data", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<TessaCompilationSourceResult>> PostGetSourcesFile(
[FromBodyAttribute] TessaCompilationRequest<TessaCompilationItemWithData> request,
[FromQueryAttribute] string? name,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("get-sources-file")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("multipart/form-data", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostGetSourcesFile (
<FromBodyAttribute> request As TessaCompilationRequest(Of TessaCompilationItemWithData),
<FromQueryAttribute> name As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of TessaCompilationSourceResult))
public:
[HttpPostAttribute(L"get-sources-file")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"multipart/form-data", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<TessaCompilationSourceResult^>^>^ PostGetSourcesFile(
[FromBodyAttribute] TessaCompilationRequest<TessaCompilationItemWithData^>^ request,
[FromQueryAttribute] String^ name,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("get-sources-file")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<TypedJsonBodyAttribute>]
[<ConsumesAttribute("application/json", new string[] { ... })>]
[<ProducesAttribute("multipart/form-data", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostGetSourcesFile :
[<FromBodyAttribute>] request : TessaCompilationRequest<TessaCompilationItemWithData> *
[<FromQueryAttribute>] name : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<TessaCompilationSourceResult>>
- request TessaCompilationRequestTessaCompilationItemWithData
- Compilation request.
- name String
- Name of scripts owner or null if scripts have no owner.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultTessaCompilationSourceResultResult of operation.