mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-02-24 09:09:58 -05:00
41 lines
1015 B
YAML
41 lines
1015 B
YAML
---
|
|
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' |