CardsControllerPostGetFileTemplateMultipart - метод

Get contents for a file created from template with specified attributes as multipart/form-data, where first part with name "Response" is CardGetFileContentResponse 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.

If response has HasContent as false, then second part is absent.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpPostAttribute("get-file-template-multipart")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute("application/json", new string[] { ... })]
[ProducesAttribute("multipart/form-data", new string[] { ... })]
[ProducesResponseTypeAttribute(200, Type = typeof(MultipartContent))]
public Task<IActionResult> PostGetFileTemplateMultipart(
	[FromBodyAttribute] CardGetFileTemplateRequest request,
	CancellationToken cancellationToken = default
)

Параметры

request  CardGetFileTemplateRequest
Request to get file contents.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

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

TaskIActionResult
Response CardGetFileContentResponse and binary file contents.

См. также