api/: More cleanup in descriptions

(and a fix in one example).
pull/977/head
Kitsune Ral 4 years ago
parent b789f3e10b
commit 040a91f42d

@ -50,7 +50,7 @@ paths:
x-example: "35" x-example: "35"
- in: body - in: body
name: body name: body
description: A list of events. description: Transaction information
schema: schema:
type: object type: object
example: { example: {
@ -59,7 +59,6 @@ paths:
{"$ref": "../../event-schemas/examples/m.room.message$m.text"} {"$ref": "../../event-schemas/examples/m.room.message$m.text"}
] ]
} }
description: Transaction information
properties: properties:
events: events:
type: array type: array

@ -119,9 +119,9 @@ paths:
display_name: display_name:
type: string type: string
description: |- description: |-
The new display name for this device. If not given, the The new display name for this device. If not given, the
display name is unchanged. display name is unchanged.
example: My other phone example: { "display_name": "My other phone" }
responses: responses:
200: 200:
description: The device was successfully updated. description: The device was successfully updated.

@ -77,7 +77,8 @@ paths:
type: object type: object
403: 403:
description: |- description: |-
You do not have permission to kick the user from the room. A meaningful ``errcode`` and description error text will be returned. Example reasons for rejections are: You do not have permission to kick the user from the room. A meaningful ``errcode`` and
description error text will be returned. Example reasons for rejections are:
- The kicker is not currently in the room. - The kicker is not currently in the room.
- The kickee is not currently in the room. - The kickee is not currently in the room.

@ -62,7 +62,7 @@ paths:
description: The new presence state. description: The new presence state.
status_msg: status_msg:
type: string type: string
description: "The status message to attach to this state." description: The status message to attach to this state.
required: ["presence"] required: ["presence"]
responses: responses:
200: 200:

@ -45,7 +45,7 @@ paths:
x-example: "@alice:example.com" x-example: "@alice:example.com"
- in: body - in: body
name: displayName name: displayName
description: The display name info. description: The new display name information.
required: true required: true
schema: schema:
type: object type: object
@ -119,7 +119,7 @@ paths:
x-example: "@alice:example.com" x-example: "@alice:example.com"
- in: body - in: body
name: avatar_url name: avatar_url
description: The avatar url info. description: The new avatar information.
required: true required: true
schema: schema:
type: object type: object

@ -45,7 +45,6 @@ paths:
- in: body - in: body
name: body name: body
required: true required: true
description: The request body
schema: schema:
type: object type: object
properties: properties:

@ -86,7 +86,7 @@ paths:
name: body name: body
required: true required: true
description: |- description: |-
Options for which rooms to return. Options for which rooms to return, or empty object to use defaults.
schema: schema:
type: object type: object
properties: properties:

Loading…
Cancel
Save