SPEC-216: Clarify when the room getters will return 403

pull/977/head
Mark Haines 9 years ago
parent cb41adee70
commit 615a9575cb

@ -57,7 +57,9 @@ paths:
404: 404:
description: The room has no state with the given type or key. description: The room has no state with the given type or key.
403: 403:
description: You are not joined to the room. description: >
You aren't a member of the room and weren't previously a
member of the room.
"/rooms/{roomId}/state": "/rooms/{roomId}/state":
get: get:
@ -170,7 +172,9 @@ paths:
allOf: allOf:
- "$ref": "core-event-schema/state_event.json" - "$ref": "core-event-schema/state_event.json"
403: 403:
description: You are not joined to the room. description: >
You aren't a member of the room and weren't previously a
member of the room.
"/rooms/{roomId}/initialSync": "/rooms/{roomId}/initialSync":
get: get:
@ -365,6 +369,10 @@ paths:
Whether this room is visible to the ``/publicRooms`` API Whether this room is visible to the ``/publicRooms`` API
or not." or not."
required: ["room_id", "membership"] required: ["room_id", "membership"]
403:
description: >
You aren't a member of the room and weren't previously a
member of the room.
"/rooms/{roomId}/members": "/rooms/{roomId}/members":
get: get:
@ -427,4 +435,8 @@ paths:
type: object type: object
allOf: allOf:
- "$ref": "v1-event-schema/m.room.member" - "$ref": "v1-event-schema/m.room.member"
403:
description: >
You aren't a member of the room and weren't previously a
member of the room.

Loading…
Cancel
Save