mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-29 13:54:10 +02:00
Add 307/308 responses to media endpoints
This commit is contained in:
parent
8e81354f3d
commit
f74eb070c0
|
|
@ -334,6 +334,18 @@ paths:
|
||||||
type: file
|
type: file
|
||||||
# This is a workaround for us not being able to say the response is required.
|
# This is a workaround for us not being able to say the response is required.
|
||||||
description: "**Required.** The bytes for the uploaded file."
|
description: "**Required.** The bytes for the uploaded file."
|
||||||
|
307:
|
||||||
|
description: "A redirect to the thumbnail of the requested content."
|
||||||
|
headers:
|
||||||
|
Location:
|
||||||
|
description: "The URL of the thumbnail content."
|
||||||
|
type: "string"
|
||||||
|
308:
|
||||||
|
description: "A redirect to the thumbnail of the requested content."
|
||||||
|
headers:
|
||||||
|
Location:
|
||||||
|
description: "The URL of the thumbnail content."
|
||||||
|
type: "string"
|
||||||
429:
|
429:
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
schema:
|
schema:
|
||||||
|
|
@ -442,6 +454,18 @@ paths:
|
||||||
type: file
|
type: file
|
||||||
# This is a workaround for us not being able to say the response is required.
|
# This is a workaround for us not being able to say the response is required.
|
||||||
description: "**Required.** The bytes for the uploaded file."
|
description: "**Required.** The bytes for the uploaded file."
|
||||||
|
307:
|
||||||
|
description: "A redirect to the thumbnail of the requested content."
|
||||||
|
headers:
|
||||||
|
Location:
|
||||||
|
description: "The URL of the thumbnail content."
|
||||||
|
type: "string"
|
||||||
|
308:
|
||||||
|
description: "A redirect to the thumbnail of the requested content."
|
||||||
|
headers:
|
||||||
|
Location:
|
||||||
|
description: "The URL of the thumbnail content."
|
||||||
|
type: "string"
|
||||||
429:
|
429:
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
schema:
|
schema:
|
||||||
|
|
@ -563,6 +587,18 @@ paths:
|
||||||
type: file
|
type: file
|
||||||
# This is a workaround for us not being able to say the response is required.
|
# This is a workaround for us not being able to say the response is required.
|
||||||
description: "**Required.** The bytes for the thumbnail."
|
description: "**Required.** The bytes for the thumbnail."
|
||||||
|
307:
|
||||||
|
description: "A redirect to the thumbnail of the requested content."
|
||||||
|
headers:
|
||||||
|
Location:
|
||||||
|
description: "The URL of the thumbnail content."
|
||||||
|
type: "string"
|
||||||
|
308:
|
||||||
|
description: "A redirect to the thumbnail of the requested content."
|
||||||
|
headers:
|
||||||
|
Location:
|
||||||
|
description: "The URL of the thumbnail content."
|
||||||
|
type: "string"
|
||||||
400:
|
400:
|
||||||
description: |-
|
description: |-
|
||||||
The request does not make sense to the server, or the server cannot thumbnail
|
The request does not make sense to the server, or the server cannot thumbnail
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue