mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-02 20:43:42 +01:00
Extending words and rate limiting
This commit is contained in:
parent
6d0a56d190
commit
ddc152347b
|
|
@ -271,16 +271,17 @@ paths:
|
||||||
- Media
|
- Media
|
||||||
"/config":
|
"/config":
|
||||||
get:
|
get:
|
||||||
summary: Get the config for the media repository.
|
summary: Get the configuration for the media repository.
|
||||||
Clients SHOULD use this as a guide when uploading content.
|
Clients SHOULD use this as a guide when uploading content.
|
||||||
All values are intentionally left optional, the client MUST assume
|
All values are intentionally left optional, the client MUST assume
|
||||||
that any field not given is not limited.
|
that any field not given is not limited.
|
||||||
|
|
||||||
**NOTE:** Reverse proxies may apply their own limits.
|
**NOTE:** Reverse proxies may apply their own configuration.
|
||||||
|
|
||||||
|
|
||||||
If auth is not supplied, this endpoint gives the global limit of the server.
|
If an accessToken is supplied, the configuration applied to the authenticated user.
|
||||||
Otherwise it should give the limits applied to the authenticated user.
|
Otherwise it should give the configuration applied globally to the server.
|
||||||
operationId: getLimits
|
operationId: getConfig
|
||||||
produces: ["application/json"]
|
produces: ["application/json"]
|
||||||
security:
|
security:
|
||||||
- accessToken: []
|
- accessToken: []
|
||||||
|
|
@ -297,5 +298,10 @@ paths:
|
||||||
application/json: {
|
application/json: {
|
||||||
"m.upload.size": 50000000
|
"m.upload.size": 50000000
|
||||||
}
|
}
|
||||||
|
429:
|
||||||
|
description: This request was rate-limited.
|
||||||
|
schema:
|
||||||
|
"$ref": "definitions/error.yaml"
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- Media
|
- Media
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue