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.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
C#
[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
)

Параметры

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.

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

TaskActionResultTessaCompilationSourceResult
Result of operation.

См. также