Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,12 +450,31 @@
"maxUploadSize": {
"type": "number"
},
"mode": {
"type": "string",
"enum": [
"post",
"put"
],
"description": "Indicates which presigned upload method the server is configured to use. When `post`, the client should perform a multipart form POST using `uploadUrl` and `form`. When `put`, the client should perform a PUT request to `url` with the supplied `headers`."
},
"uploadUrl": {
"type": "string",
"format": "uri"
"format": "uri",
"description": "Present when `mode` is `post`. The endpoint to POST a multipart form upload to."
},
"form": {
"type": "object"
"type": "object",
"description": "Present when `mode` is `post`. The form fields to include in the multipart upload, including signed credentials."
},
"url": {
"type": "string",
"format": "uri",
"description": "Present when `mode` is `put`. The presigned URL to PUT the file contents to."
},
"headers": {
"type": "object",
"description": "Present when `mode` is `put`. The HTTP headers that must be sent with the PUT request."
},
"attachment": {
"$ref": "#/components/schemas/Attachment"
Expand Down
25 changes: 25 additions & 0 deletions spec3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,36 @@ paths:
properties:
maxUploadSize:
type: number
mode:
type: string
enum:
- post
- put
description:
Indicates which presigned upload method the server is
configured to use. When `post`, the client should perform
a multipart form POST using `uploadUrl` and `form`. When
`put`, the client should perform a PUT request to `url`
with the supplied `headers`.
uploadUrl:
type: string
format: uri
description: Present when `mode` is `post`. The endpoint to
POST a multipart form upload to.
form:
type: object
description: Present when `mode` is `post`. The form fields
to include in the multipart upload, including signed
credentials.
url:
type: string
format: uri
description: Present when `mode` is `put`. The presigned URL
to PUT the file contents to.
headers:
type: object
description: Present when `mode` is `put`. The HTTP headers
that must be sent with the PUT request.
attachment:
"$ref": "#/components/schemas/Attachment"
"400":
Expand Down
Loading