summaryrefslogtreecommitdiff
path: root/matweb/oas
diff options
context:
space:
mode:
authorJan Friedli2020-07-13 08:14:47 +0200
committerJan Friedli2020-07-13 08:14:47 +0200
commit2c1bc2f05af93e13d331e0f6a5c1b617717a50e3 (patch)
treea6c2a853ccbcf6f353791d56b63911a6bbedfd12 /matweb/oas
parent6aa9fa7029ae15d0a18657fb9deccc3313aed9e1 (diff)
documented download endpoint
Diffstat (limited to 'matweb/oas')
-rw-r--r--matweb/oas/download.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/matweb/oas/download.yml b/matweb/oas/download.yml
new file mode 100644
index 0000000..4c101a4
--- /dev/null
+++ b/matweb/oas/download.yml
@@ -0,0 +1,33 @@
1---
2tags:
3 - "File Download"
4summary: 'Download a single cleaned file or zip archive containing multiple files'
5consumes:
6 - "application/json"
7produces:
8 - "*/*"
9parameters:
10- name: "key"
11 in: "path"
12 description: "A key generated for that resource"
13 required: true
14 type: "string"
15- name: "secret"
16 in: "path"
17 description: "A secret generated for that resource"
18 required: true
19 type: "string"
20- name: "filename"
21 in: "path"
22 description: "the filename of the cleaned file"
23 required: true
24 type: "string"
25
26
27responses:
28 200:
29 description: "An object containing all info about the cleaned file"
30 schema:
31 $ref: '#/definitions/UploadResponse'
32 404:
33 description: "The filename, key or secret are wrong" \ No newline at end of file