Skip to content

Commit

Permalink
Move the upload headers to the POST method (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
2-towns authored Oct 29, 2024
1 parent a2ac745 commit 942f940
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 942f940

Please sign in to comment.