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.
[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
)
<HttpPostAttribute("get-file-template-multipart")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<TypedJsonBodyAttribute>
<ConsumesAttribute("application/json", New String() { ... })>
<ProducesAttribute("multipart/form-data", New String() { ... })>
<ProducesResponseTypeAttribute(200, Type := GetType(MultipartContent))>
Public Function PostGetFileTemplateMultipart (
<FromBodyAttribute> request As CardGetFileTemplateRequest,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpPostAttribute(L"get-file-template-multipart")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[TypedJsonBodyAttribute]
[ConsumesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesAttribute(L"multipart/form-data", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200, Type = typeof(MultipartContent))]
Task<IActionResult^>^ PostGetFileTemplateMultipart(
[FromBodyAttribute] CardGetFileTemplateRequest^ request,
CancellationToken cancellationToken = CancellationToken()
)
[<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))>]
member PostGetFileTemplateMultipart :
[<FromBodyAttribute>] request : CardGetFileTemplateRequest *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>