mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-15 16:04:10 +01:00
Add rate-limiting on APIs which rate limit. More descriptions.
This commit is contained in:
parent
f72319e256
commit
99dfe64d5c
|
|
@ -1,7 +1,10 @@
|
||||||
type: object
|
type: object
|
||||||
|
description: A Matrix-level Error
|
||||||
properties:
|
properties:
|
||||||
errcode:
|
errcode:
|
||||||
type: string
|
type: string
|
||||||
|
description: An error code.
|
||||||
error:
|
error:
|
||||||
type: string
|
type: string
|
||||||
|
description: A human-readable error message.
|
||||||
required: ["errcode"]
|
required: ["errcode"]
|
||||||
|
|
@ -44,6 +44,10 @@ paths:
|
||||||
description: The display name was set.
|
description: The display name was set.
|
||||||
schema:
|
schema:
|
||||||
type: object # empty json object
|
type: object # empty json object
|
||||||
|
429:
|
||||||
|
description: This request was rate-limited.
|
||||||
|
schema:
|
||||||
|
"$ref": "definitions/error.yaml"
|
||||||
get:
|
get:
|
||||||
summary: Get the user's display name.
|
summary: Get the user's display name.
|
||||||
parameters:
|
parameters:
|
||||||
|
|
@ -89,6 +93,10 @@ paths:
|
||||||
description: The avatar URL was set.
|
description: The avatar URL was set.
|
||||||
schema:
|
schema:
|
||||||
type: object # empty json object
|
type: object # empty json object
|
||||||
|
429:
|
||||||
|
description: This request was rate-limited.
|
||||||
|
schema:
|
||||||
|
"$ref": "definitions/error.yaml"
|
||||||
get:
|
get:
|
||||||
summary: Get the user's avatar URL.
|
summary: Get the user's avatar URL.
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue