From 5d1e6b3235f9cddf66611e7cf4f4d0b41ffd7368 Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Tue, 14 Jul 2020 15:28:08 +0200 Subject: upgrade to oas 3 --- matweb/oas/components.yml | 68 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 matweb/oas/components.yml (limited to 'matweb/oas/components.yml') diff --git a/matweb/oas/components.yml b/matweb/oas/components.yml new file mode 100644 index 0000000..82d07fb --- /dev/null +++ b/matweb/oas/components.yml @@ -0,0 +1,68 @@ +schemas: + BulkBody: + type: "object" + properties: + download_list: + type: "array" + description: "An object containing the files you want to create a bulk download for" + items: + $ref: '#/components/schemas/BulkFile' + BulkFile: + type: "object" + properties: + file_name: + type: "string" + key: + type: "string" + secret: + type: "string" + ErrorAtLeastTwoResponse: + type: "object" + properties: + message: + type: "object" + description: "A description of the error" + properties: + download_list: + type: "array" + items: + type: "string" + example: "Min length is 2" + UploadResponse: + type: "object" + properties: + inactive_after_sec: + type: "integer" + format: "int64" + description: "Defines after how many seconds the download wont be available" + output_filename: + type: "string" + description: "The resulting filename after metadata removal" + mime: + type: "string" + description: "The mime type of the cleaned file" + key: + type: "string" + description: "A key used to guarantee file integrity" + secret: + type: "string" + description: "A secret used to guarantee file integrity" + meta: + type: "object" + description: "An object of the removed metadata where key indicates the metadata type" + items: + type: "string" + meta_after: + type: "object" + description: "An object of the remaining metadata where key indicates the metadata type" + items: + type: "string" + download_link: + type: "string" + description: "The link to download the cleaned file" + ErrorResponse: + type: "object" + properties: + message: + type: "string" + description: "A description of the error" \ No newline at end of file -- cgit v1.3