|
|
@ -41,7 +41,7 @@ paths:
|
|
|
|
name: Content-Type
|
|
|
|
name: Content-Type
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
description: The content type of the file being uploaded
|
|
|
|
description: The content type of the file being uploaded
|
|
|
|
x-example: "Content-Type: audio/mpeg"
|
|
|
|
x-example: "Content-Type: application/pdf"
|
|
|
|
- in: query
|
|
|
|
- in: query
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
x-example: "War and Peace.pdf"
|
|
|
|
x-example: "War and Peace.pdf"
|
|
|
@ -51,6 +51,7 @@ paths:
|
|
|
|
name: "<content>"
|
|
|
|
name: "<content>"
|
|
|
|
description: The content to be uploaded.
|
|
|
|
description: The content to be uploaded.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
|
|
|
|
x-example: "<bytes>" # so the spec shows "<bytes>" without quotes.
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
example: "<bytes>"
|
|
|
|
example: "<bytes>"
|
|
|
@ -103,7 +104,7 @@ paths:
|
|
|
|
default: true
|
|
|
|
default: true
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
Indicates to the server that it should not attempt to fetch the media if it is deemed
|
|
|
|
Indicates to the server that it should not attempt to fetch the media if it is deemed
|
|
|
|
remote. This is to prevent routing loops where the server contacts itself. Defaults to
|
|
|
|
remote. This is to prevent routing loops where the server contacts itself. Defaults to
|
|
|
|
true if not provided.
|
|
|
|
true if not provided.
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
@ -158,7 +159,7 @@ paths:
|
|
|
|
default: true
|
|
|
|
default: true
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
Indicates to the server that it should not attempt to fetch the media if it is deemed
|
|
|
|
Indicates to the server that it should not attempt to fetch the media if it is deemed
|
|
|
|
remote. This is to prevent routing loops where the server contacts itself. Defaults to
|
|
|
|
remote. This is to prevent routing loops where the server contacts itself. Defaults to
|
|
|
|
true if not provided.
|
|
|
|
true if not provided.
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
@ -228,7 +229,7 @@ paths:
|
|
|
|
default: true
|
|
|
|
default: true
|
|
|
|
description: |
|
|
|
|
description: |
|
|
|
|
Indicates to the server that it should not attempt to fetch the media if it is deemed
|
|
|
|
Indicates to the server that it should not attempt to fetch the media if it is deemed
|
|
|
|
remote. This is to prevent routing loops where the server contacts itself. Defaults to
|
|
|
|
remote. This is to prevent routing loops where the server contacts itself. Defaults to
|
|
|
|
true if not provided.
|
|
|
|
true if not provided.
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
@ -330,7 +331,7 @@ paths:
|
|
|
|
m.upload.size:
|
|
|
|
m.upload.size:
|
|
|
|
type: integer
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
format: int64
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
|
The maximum size an upload can be in bytes.
|
|
|
|
The maximum size an upload can be in bytes.
|
|
|
|
Clients SHOULD use this as a guide when uploading content.
|
|
|
|
Clients SHOULD use this as a guide when uploading content.
|
|
|
|
If not listed or null, the size limit should be treated as unknown.
|
|
|
|
If not listed or null, the size limit should be treated as unknown.
|
|
|
|