summaryrefslogtreecommitdiff
path: root/matweb/oas/download.yml
diff options
context:
space:
mode:
Diffstat (limited to 'matweb/oas/download.yml')
-rw-r--r--matweb/oas/download.yml49
1 files changed, 29 insertions, 20 deletions
diff --git a/matweb/oas/download.yml b/matweb/oas/download.yml
index 899d103..e4a0ca4 100644
--- a/matweb/oas/download.yml
+++ b/matweb/oas/download.yml
@@ -2,30 +2,39 @@
2tags: 2tags:
3 - "File Download" 3 - "File Download"
4summary: 'Download a single cleaned file or zip archive containing multiple files' 4summary: 'Download a single cleaned file or zip archive containing multiple files'
5consumes:
6 - "application/json"
7produces:
8 - "*/*"
9parameters: 5parameters:
10- name: "key" 6 - name: "key"
11 in: "path" 7 in: "path"
12 description: "A key generated for that resource" 8 description: "A key generated for that resource"
13 required: true 9 required: true
14 type: "string" 10 schema:
15- name: "secret" 11 type: "string"
16 in: "path" 12 - name: "secret"
17 description: "A secret generated for that resource" 13 in: "path"
18 required: true 14 description: "A secret generated for that resource"
19 type: "string" 15 required: true
20- name: "filename" 16 schema:
21 in: "path" 17 type: "string"
22 description: "the filename of the cleaned file" 18 - name: "filename"
23 required: true 19 in: "path"
24 type: "string" 20 description: "the filename of the cleaned file"
21 required: true
22 schema:
23 type: "string"
25 24
26 25
27responses: 26responses:
28 200: 27 200:
29 description: "" 28 description: "The cleaned file as attachment so a browser downloads the file directly"
29 content:
30 "*/*":
31 schema:
32 format: binary
33 400:
34 description: "Invalid input"
35 content:
36 application/json:
37 schema:
38 $ref: '#/components/schemas/ErrorResponse'
30 404: 39 404:
31 description: "The filename, key or secret are wrong or the link is too old and the file has been deleted" \ No newline at end of file 40 description: "The filename, key or secret are wrong or the link is too old and the file has been deleted" \ No newline at end of file