From 668451751411b0d43ecc0791c6524e7e9a0cd21e Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Fri, 21 Aug 2020 09:09:19 +0200 Subject: added endpoint to clean file and return it directly for automated clients --- matweb/oas/remove_metadata.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 matweb/oas/remove_metadata.yml (limited to 'matweb/oas') diff --git a/matweb/oas/remove_metadata.yml b/matweb/oas/remove_metadata.yml new file mode 100644 index 0000000..ad5a7da --- /dev/null +++ b/matweb/oas/remove_metadata.yml @@ -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' \ No newline at end of file -- cgit v1.3