blob: 4133d0824171cb0fae2d9bd8179f16c68ca91b60 (
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
42
43
44
|
---
tags:
- "File Upload (Metadata removal)"
summary: 'Upload a single file which will be cleaned from metadata'
requestBody:
description: "The file that will be cleaned from metadata. Note that the file must be base64 encoded"
required: true
content:
application/json:
schema:
type: "object"
properties:
file_name:
type: "string"
example: 'my_example.jpg'
file:
type: "string"
example: 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=='
responses:
201:
description: "An object containing all info about the cleaned file"
content:
application/json:
schema:
$ref: '#/components/schemas/UploadResponse'
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'
|