summaryrefslogtreecommitdiff
path: root/matweb/oas/download.yml
blob: e4a0ca4503bc353719861c4f8e40423c862e68af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
tags:
  - "File Download"
summary: 'Download a single cleaned file or zip archive containing multiple files'
parameters:
  - name: "key"
    in: "path"
    description: "A key generated for that resource"
    required: true
    schema:
      type: "string"
  - name: "secret"
    in: "path"
    description: "A secret generated for that resource"
    required: true
    schema:
      type: "string"
  - name: "filename"
    in: "path"
    description: "the filename of the cleaned file"
    required: true
    schema:
      type: "string"


responses:
  200:
    description: "The cleaned file as attachment so a browser downloads the file directly"
    content:
      "*/*":
        schema:
          format: binary
  400:
    description: "Invalid input"
    content:
      application/json:
        schema:
          $ref: '#/components/schemas/ErrorResponse'
  404:
    description: "The filename, key or secret are wrong or the link is too old and the file has been deleted"