1313# limitations under the License.
1414openapi : 3.1.0
1515info :
16- title : Matrix Client-Server Room Directory API
16+ title : Matrix Client-Server Published Room Directory API
1717 version : 1.0.0
1818paths :
1919 " /directory/list/room/{roomId} " :
2020 get :
2121 summary : Gets the visibility of a room in the directory
22- description : Gets the visibility of a given room on the server's public room
23- directory.
22+ description : |-
23+ Gets the visibility of a given room in the server's
24+ published room directory.
2425 operationId : getRoomVisibilityOnDirectory
2526 parameters :
2627 - in : path
3233 type : string
3334 responses :
3435 " 200 " :
35- description : The visibility of the room in the directory
36+ description : The visibility of the room in the directory.
3637 content :
3738 application/json :
3839 schema :
5051 " visibility " : " public"
5152 }
5253 " 404 " :
53- description : The room is not known to the server
54+ description : The room is not known to the server.
5455 content :
5556 application/json :
5657 schema :
@@ -64,14 +65,13 @@ paths:
6465 tags :
6566 - Room discovery
6667 put :
67- summary : Sets the visibility of a room in the room directory
68+ summary : Sets the visibility of a room in the directory
6869 description : |-
69- Sets the visibility of a given room in the server's public room
70- directory.
70+ Sets the visibility of a given room in the server's published room directory.
7171
72- Servers may choose to implement additional access control checks
73- here, for instance that room visibility can only be changed by
74- the room creator or a server administrator.
72+ Servers MAY implement additional access control checks, for instance,
73+ to ensure that a room's visibility can only be changed by the room creator
74+ or a server administrator.
7575 operationId : setRoomVisibilityOnDirectory
7676 security :
7777 - accessTokenQuery : []
@@ -97,11 +97,11 @@ paths:
9797 - public
9898 description : |-
9999 The new visibility setting for the room.
100- Defaults to ' public' .
100+ Defaults to ` public` .
101101 example : {
102102 " visibility " : " public"
103103 }
104- description : The new visibility for the room on the room directory.
104+ description : The new visibility for the room in the published room directory.
105105 required : true
106106 responses :
107107 " 200 " :
@@ -114,7 +114,7 @@ paths:
114114 response :
115115 value : {}
116116 " 404 " :
117- description : The room is not known to the server
117+ description : The room is not known to the server.
118118 content :
119119 application/json :
120120 schema :
@@ -129,9 +129,9 @@ paths:
129129 - Room discovery
130130 /publicRooms :
131131 get :
132- summary : Lists the public rooms on the server.
132+ summary : Lists a server's published room directory
133133 description : |-
134- Lists the public rooms on the server .
134+ Lists a server's published room directory .
135135
136136 This API returns paginated responses. The rooms are ordered by the number
137137 of joined members, with the largest rooms first.
@@ -154,23 +154,23 @@ paths:
154154 - in : query
155155 name : server
156156 description : |-
157- The server to fetch the public room lists from. Defaults to the
158- local server. Case sensitive.
157+ The server to fetch the published room directory from. Defaults
158+ to the local server. Case sensitive.
159159 schema :
160160 type : string
161161 responses :
162162 " 200 " :
163- description : A list of the rooms on the server.
163+ description : A list of the published rooms on the server.
164164 content :
165165 application/json :
166166 schema :
167167 $ref : definitions/public_rooms_response.yaml
168168 tags :
169169 - Room discovery
170170 post :
171- summary : Lists the public rooms on the server with optional filter.
171+ summary : Lists a server's published room directory with an optional filter
172172 description : |-
173- Lists the public rooms on the server, with optional filter.
173+ Lists a server's published room directory with an optional filter.
174174
175175 This API returns paginated responses. The rooms are ordered by the number
176176 of joined members, with the largest rooms first.
@@ -182,8 +182,8 @@ paths:
182182 - in : query
183183 name : server
184184 description : |-
185- The server to fetch the public room lists from. Defaults to the
186- local server. Case sensitive.
185+ The server to fetch the published room directory from. Defaults
186+ to the local server. Case sensitive.
187187 schema :
188188 type : string
189189 requestBody :
@@ -253,7 +253,7 @@ paths:
253253 required : true
254254 responses :
255255 " 200 " :
256- description : A list of the rooms on the server.
256+ description : A filtered list of the published rooms on the server.
257257 content :
258258 application/json :
259259 schema :
0 commit comments