mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
Add allow_redirect query parameter to relevant media endpoints
This commit is contained in:
parent
188d568f3a
commit
96febd0337
|
|
@ -308,6 +308,16 @@ paths:
|
||||||
content repository can and should impose a maximum value for this
|
content repository can and should impose a maximum value for this
|
||||||
parameter. The content repository may also choose to respond before
|
parameter. The content repository may also choose to respond before
|
||||||
the timeout.
|
the timeout.
|
||||||
|
- in: query
|
||||||
|
type: boolean
|
||||||
|
name: allow_redirect
|
||||||
|
x-example: false
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
description: |
|
||||||
|
Indicates to the server that it may return a 307 or 308 redirect response that points
|
||||||
|
at the relevant media content. When not explicitly set to true the server must return
|
||||||
|
the media content itself.
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "The content that was previously uploaded."
|
description: "The content that was previously uploaded."
|
||||||
|
|
@ -404,6 +414,16 @@ paths:
|
||||||
content repository can and should impose a maximum value for this
|
content repository can and should impose a maximum value for this
|
||||||
parameter. The content repository may also choose to respond before
|
parameter. The content repository may also choose to respond before
|
||||||
the timeout.
|
the timeout.
|
||||||
|
- in: query
|
||||||
|
type: boolean
|
||||||
|
name: allow_redirect
|
||||||
|
x-example: false
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
description: |
|
||||||
|
Indicates to the server that it may return a 307 or 308 redirect response that points
|
||||||
|
at the relevant media content. When not explicitly set to true the server must return
|
||||||
|
the media content itself.
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "The content that was previously uploaded."
|
description: "The content that was previously uploaded."
|
||||||
|
|
@ -518,6 +538,16 @@ paths:
|
||||||
content repository can and should impose a maximum value for this
|
content repository can and should impose a maximum value for this
|
||||||
parameter. The content repository may also choose to respond before
|
parameter. The content repository may also choose to respond before
|
||||||
the timeout.
|
the timeout.
|
||||||
|
- in: query
|
||||||
|
type: boolean
|
||||||
|
name: allow_redirect
|
||||||
|
x-example: false
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
description: |
|
||||||
|
Indicates to the server that it may return a 307 or 308 redirect response that points
|
||||||
|
at the relevant media content. When not explicitly set to true the server must return
|
||||||
|
the media content itself.
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: "A thumbnail of the requested content."
|
description: "A thumbnail of the requested content."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue