@ -13,14 +13,15 @@
# limitations under the License.
# limitations under the License.
openapi : 3.1 .0
openapi : 3.1 .0
info:
info:
title : Matrix Client-Server Room Directory API
title : Matrix Client-Server Published Room Directory API
version : 1.0 .0
version : 1.0 .0
paths:
paths:
"/directory/list/room/{roomId}" :
"/directory/list/room/{roomId}" :
get:
get:
summary : Gets the visibility of a room in the directory
summary : Gets the visibility of a room in the directory
description : Gets the visibility of a given room on the server's public room
description : |-
directory.
Gets the visibility of a given room in the server's
published room directory.
operationId : getRoomVisibilityOnDirectory
operationId : getRoomVisibilityOnDirectory
parameters:
parameters:
- in : path
- in : path
@ -32,7 +33,7 @@ paths:
type : string
type : string
responses:
responses:
"200" :
"200" :
description : The visibility of the room in the directory
description : The visibility of the room in the directory .
content:
content:
application/json:
application/json:
schema:
schema:
@ -50,7 +51,7 @@ paths:
"visibility": "public"
"visibility": "public"
}
}
"404" :
"404" :
description : The room is not known to the server
description : The room is not known to the server .
content:
content:
application/json:
application/json:
schema:
schema:
@ -64,14 +65,13 @@ paths:
tags:
tags:
- Room discovery
- Room discovery
put:
put:
summary : Sets the visibility of a room in the room directory
summary : Sets the visibility of a room in the directory
description : |-
description : |-
Sets the visibility of a given room in the server's public room
Sets the visibility of a given room in the server's published room directory.
directory.
Servers may choose to implement additional access control checks
Servers MAY implement additional access control checks, for instance,
here, for instance that room visibility can only be changed by
to ensure that a room's visibility can only be changed by the room creator
the room creator or a server administrator.
or a server administrator.
operationId : setRoomVisibilityOnDirectory
operationId : setRoomVisibilityOnDirectory
security:
security:
- accessTokenQuery : [ ]
- accessTokenQuery : [ ]
@ -97,11 +97,11 @@ paths:
- public
- public
description : |-
description : |-
The new visibility setting for the room.
The new visibility setting for the room.
Defaults to 'public' .
Defaults to `public` .
example : {
example : {
"visibility": "public"
"visibility": "public"
}
}
description : The new visibility for the room on the room directory.
description : The new visibility for the room in the published room directory.
required : true
required : true
responses:
responses:
"200" :
"200" :
@ -114,7 +114,7 @@ paths:
response:
response:
value : {}
value : {}
"404" :
"404" :
description : The room is not known to the server
description : The room is not known to the server .
content:
content:
application/json:
application/json:
schema:
schema:
@ -129,9 +129,9 @@ paths:
- Room discovery
- Room discovery
/publicRooms:
/publicRooms:
get:
get:
summary : Lists the public rooms on the server.
summary : Lists a server's published room directory
description : |-
description : |-
Lists the public rooms on the server .
Lists a server's published room directory .
This API returns paginated responses. The rooms are ordered by the number
This API returns paginated responses. The rooms are ordered by the number
of joined members, with the largest rooms first.
of joined members, with the largest rooms first.
@ -154,13 +154,13 @@ paths:
- in : query
- in : query
name : server
name : server
description : |-
description : |-
The server to fetch the publi c room lists from. Defaults to the
The server to fetch the publi shed room directory from. Defaults
local server. Case sensitive.
to the local server. Case sensitive.
schema:
schema:
type : string
type : string
responses:
responses:
"200" :
"200" :
description : A list of the rooms on the server.
description : A list of the published rooms on the server.
content:
content:
application/json:
application/json:
schema:
schema:
@ -168,9 +168,9 @@ paths:
tags:
tags:
- Room discovery
- Room discovery
post:
post:
summary : Lists the public rooms on the server with optional filter.
summary : Lists a server's published room directory with an optional filter
description : |-
description : |-
Lists the public rooms on the server, with optional filter.
Lists a server's published room directory with an optional filter.
This API returns paginated responses. The rooms are ordered by the number
This API returns paginated responses. The rooms are ordered by the number
of joined members, with the largest rooms first.
of joined members, with the largest rooms first.
@ -182,8 +182,8 @@ paths:
- in : query
- in : query
name : server
name : server
description : |-
description : |-
The server to fetch the publi c room lists from. Defaults to the
The server to fetch the publi shed room directory from. Defaults
local server. Case sensitive.
to the local server. Case sensitive.
schema:
schema:
type : string
type : string
requestBody:
requestBody:
@ -253,7 +253,7 @@ paths:
required : true
required : true
responses:
responses:
"200" :
"200" :
description : A list of the rooms on the server.
description : A filtered list of the published rooms on the server.
content:
content:
application/json:
application/json:
schema:
schema: