Add 307/308 responses to media endpoints

This commit is contained in:
Nick Barrett 2023-05-16 20:48:57 +01:00
parent 8e81354f3d
commit f74eb070c0
No known key found for this signature in database
GPG key ID: 31F23F2CF354937B

View file

@ -334,6 +334,18 @@ paths:
type: file
# This is a workaround for us not being able to say the response is required.
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:
description: This request was rate-limited.
schema:
@ -442,6 +454,18 @@ paths:
type: file
# This is a workaround for us not being able to say the response is required.
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:
description: This request was rate-limited.
schema:
@ -563,6 +587,18 @@ paths:
type: file
# This is a workaround for us not being able to say the response is required.
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:
description: |-
The request does not make sense to the server, or the server cannot thumbnail