Merge pull request #1691 from matrix-org/rav/fix_make_join_doc

make_join and make_leave return their events under an `event` key
pull/1701/head
Richard van der Hoff 6 years ago committed by GitHub
commit 15eb69cc47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,12 +61,16 @@ paths:
responses:
200:
description: |-
An unsigned event that the server may now use as a template
for the rest of the `Joining Rooms`_ handshake.
A template to be used for the rest of the `Joining Rooms`_ handshake.
schema:
type: object
properties:
event:
allOf:
- $ref: "definitions/unsigned_pdu.yaml"
- type: object
- description: |-
An unsigned template event.
type: object
properties:
# Note: we override a bunch of parameters to change their descriptions
sender:
@ -139,6 +143,7 @@ paths:
- state_key
examples:
application/json: {
event: {
"$ref": "examples/unsigned_pdu.json",
"type": "m.room.member",
"state_key": "@someone:example.org",
@ -151,6 +156,7 @@ paths:
["$room_p0wer_l3vels_3vent:matrix.org", {"sha256": "abase64encodedsha256hashshouldbe43byteslong"}]
]
}
}
400:
description: |-
The request is invalid or the room the server is attempting

@ -52,12 +52,17 @@ paths:
responses:
200:
description: |-
An unsigned event that the sending server may use as a template
for when it calls ``/send_leave``.
A template to be used to call ``/send_leave``.
schema:
schema:
type: object
properties:
event:
allOf:
- $ref: "definitions/unsigned_pdu.yaml"
- type: object
- description: |-
An unsigned template event.
type: object
properties:
# Note: we override a bunch of parameters to change their descriptions
sender:
@ -126,6 +131,7 @@ paths:
- state_key
examples:
application/json: {
"event": {
"$ref": "examples/unsigned_pdu.json",
"type": "m.room.member",
"state_key": "@someone:example.org",
@ -138,6 +144,7 @@ paths:
["$room_p0wer_l3vels_3vent:matrix.org", {"sha256": "abase64encodedsha256hashshouldbe43byteslong"}]
]
}
}
403:
description: |-
The request is not authorized. This could mean that the user is not in the room.

Loading…
Cancel
Save