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/bulk.yml | 53 +++++++++++++++++++---------------------------------- 1 file changed, 19 insertions(+), 34 deletions(-) (limited to 'matweb/oas/bulk.yml') diff --git a/matweb/oas/bulk.yml b/matweb/oas/bulk.yml index 08f346c..bbfe02e 100644 --- a/matweb/oas/bulk.yml +++ b/matweb/oas/bulk.yml @@ -6,47 +6,32 @@ description: "This endpoint allows you to bulk download several files which you uploaded beforehand. Note that the `download_list` MUST contain more than two files. The max length is configurable (default is 10)." -consumes: - - "application/json" -produces: - - "application/json" -parameters: -- in: "body" - name: "body" +requestBody: description: "The files that will be combined for one single download" required: true - schema: - $ref: '#/definitions/BulkBody' + content: + application/json: + schema: + $ref: '#/components/schemas/BulkBody' responses: 201: description: "A new resource to download all files as one archive" - schema: - $ref: '#/definitions/UploadResponse' + content: + application/json: + schema: + $ref: '#/components/schemas/UploadResponse' 400: description: "Invalid input" - schema: - $ref: '#/definitions/ErrorResponse' + content: + application/json: + schema: + oneOf: + - $ref: '#/components/schemas/ErrorAtLeastTwoResponse' + - $ref: '#/components/schemas/ErrorResponse' 500: description: "Unable to clean the file" - schema: - $ref: '#/definitions/ErrorResponse' - -definitions: - BulkBody: - type: "object" - properties: - download_list: - type: "array" - description: "An object containing the files you want to create a bulk download for" - items: - $ref: '#/definitions/BulkFile' - BulkFile: - type: "object" - properties: - file_name: - type: "string" - key: - type: "string" - secret: - type: "string" \ No newline at end of file + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' \ No newline at end of file -- cgit v1.3