summaryrefslogtreecommitdiff
path: root/matweb/oas/remove_metadata.yml
blob: c58daa37ba0f5813b69c4199454e8c55f39fda63 (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
41
---
tags:
  - "Metadata removal in a single request (non-human clients)"
summary: 'Upload a single file which will be cleaned from metadata and returned directly'
requestBody:
  description: "The file that will be cleaned from metadata"
  required: true
  content:
    multipart/form-data:
      schema:
        type: object
        properties:
          file:
            type: string
            format: binary
responses:
  '200':
    description: "The cleaned file"
    content:
      "*/*":
        schema:
          type: string
          format: binary
  400:
    description: "Invalid input"
    content:
      application/json:
        schema:
          $ref: '#/components/schemas/ErrorResponse'
  415:
    description: "Unsupported file type"
    content:
      application/json:
        schema:
          $ref: '#/components/schemas/ErrorResponse'
  500:
    description: "Unable to clean the file"
    content:
      application/json:
        schema:
          $ref: '#/components/schemas/ErrorResponse'