mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-02-24 00:59:59 -05:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
---
|
|
tags:
|
|
- "File Bulk Download"
|
|
summary: 'Group multiple files to download as one zip archive'
|
|
description: "This endpoint allows you to bulk download several files
|
|
which you uploaded beforehand. Note that the `download_list`
|
|
MUST contain more than two files. The max length is configurable
|
|
(default is 10)."
|
|
requestBody:
|
|
description: "The files that will be combined for one single download"
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/BulkBody'
|
|
|
|
responses:
|
|
201:
|
|
description: "A new resource to download all files as one archive"
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/UploadResponse'
|
|
400:
|
|
description: "Invalid input"
|
|
content:
|
|
application/json:
|
|
schema:
|
|
oneOf:
|
|
- $ref: '#/components/schemas/ErrorAtLeastTwoResponse'
|
|
- $ref: '#/components/schemas/ErrorResponse'
|
|
500:
|
|
description: "Unable to clean the file"
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ErrorResponse' |