mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-03 21:03:42 +01:00
Merge pull request #1265 from turt2live/travis/clarify-routing-loops
Document the allow_remote query param on the media repo
This commit is contained in:
commit
b00131a774
|
|
@ -95,6 +95,15 @@ paths:
|
|||
required: true
|
||||
description: |
|
||||
The media ID from the ``mxc://`` URI (the path component)
|
||||
- in: query
|
||||
type: boolean
|
||||
name: allow_remote
|
||||
x-example: false
|
||||
required: false
|
||||
description: |
|
||||
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
|
||||
true if not provided.
|
||||
responses:
|
||||
200:
|
||||
description: "The content that was previously uploaded."
|
||||
|
|
@ -140,6 +149,15 @@ paths:
|
|||
required: true
|
||||
description: |
|
||||
The filename to give in the Content-Disposition
|
||||
- in: query
|
||||
type: boolean
|
||||
name: allow_remote
|
||||
x-example: false
|
||||
required: false
|
||||
description: |
|
||||
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
|
||||
true if not provided.
|
||||
responses:
|
||||
200:
|
||||
description: "The content that was previously uploaded."
|
||||
|
|
@ -198,6 +216,15 @@ paths:
|
|||
name: method
|
||||
x-example: "scale"
|
||||
description: The desired resizing method.
|
||||
- in: query
|
||||
type: boolean
|
||||
name: allow_remote
|
||||
x-example: false
|
||||
required: false
|
||||
description: |
|
||||
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
|
||||
true if not provided.
|
||||
responses:
|
||||
200:
|
||||
description: "A thumbnail of the requested content."
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ Unreleased changes
|
|||
(`#1142 <https://github.com/matrix-org/matrix-doc/pull/1142>`_).
|
||||
- Add the ``/register/available`` endpoint for username availability
|
||||
(`#1151 <https://github.com/matrix-org/matrix-doc/pull/1151>`_).
|
||||
- Add ``allow_remote`` to the content repo to avoid routing loops
|
||||
(`#1265 <https://github.com/matrix-org/matrix-doc/pull/1265>`_).
|
||||
- Add report content API
|
||||
(`#1264 <https://github.com/matrix-org/matrix-doc/pull/1264>`_).
|
||||
- Document ``/logout/all`` endpoint
|
||||
|
|
|
|||
Loading…
Reference in a new issue