mat2-web/matweb/oas/remove_metadata.yml

41 lines
1015 B
YAML
Raw Normal View History

---
tags:
2020-08-21 09:11:58 +02:00
- "Metadata removal in a single request (non-human clients)"
summary: 'Upload a single file which will be cleaned from metadata and returned directly'
requestBody:
2020-08-21 09:11:58 +02:00
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'