From 942f940c920616174c727d4aaea73d5eb99d614b Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 29 Oct 2024 15:40:43 +0100 Subject: [PATCH] Move the upload headers to the POST method (#978) --- openapi.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 5887af56..37e5d37f 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -443,21 +443,6 @@ paths: summary: "Lists manifest CIDs stored locally in node." tags: [ Data ] operationId: listData - parameters: - - name: content-type - in: header - required: false - description: The content type of the file. Must be valid. - schema: - type: string - example: "image/png" - - name: content-disposition - in: header - required: false - description: The content disposition used to send the filename. - schema: - type: string - example: "attachment; filename=\"codex.png\"" responses: "200": description: Retrieved list of content CIDs @@ -478,6 +463,21 @@ paths: summary: "Upload a file in a streaming manner. Once finished, the file is stored in the node and can be retrieved by any node in the network using the returned CID." tags: [ Data ] operationId: upload + parameters: + - name: content-type + in: header + required: false + description: The content type of the file. Must be valid. + schema: + type: string + example: "image/png" + - name: content-disposition + in: header + required: false + description: The content disposition used to send the filename. + schema: + type: string + example: "attachment; filename=\"codex.png\"" requestBody: content: application/octet-stream: