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