mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-08-03 11:54:08 -04:00
added endpoint to clean file and return it directly for automated clients
This commit is contained in:
parent
5b9bd99eb7
commit
6684517514
3 changed files with 137 additions and 3 deletions
41
matweb/oas/remove_metadata.yml
Normal file
41
matweb/oas/remove_metadata.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
tags:
|
||||
- "Metadata removal cleaning in one request (automated 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 and the cleaned file is returned directly"
|
||||
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'
|
Loading…
Add table
Add a link
Reference in a new issue