Extending words and rate limiting

pull/977/head
Will Hunt 8 years ago committed by GitHub
parent 6d0a56d190
commit ddc152347b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save