Add room_types
and room_type
to /publicRooms
(#1199)
MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/3827 Incorporates https://github.com/matrix-org/matrix-spec-proposals/pull/3858
This commit is contained in:
parent
9506ecea59
commit
b14759a27b
6 changed files with 39 additions and 8 deletions
|
@ -198,8 +198,18 @@ paths:
|
|||
generic_search_term:
|
||||
type: string
|
||||
description: |-
|
||||
A string to search for in the room metadata, e.g. name,
|
||||
topic, canonical alias etc. (Optional).
|
||||
An optional string to search for in the room metadata, e.g. name,
|
||||
topic, canonical alias, etc.
|
||||
room_types:
|
||||
type: array
|
||||
x-addedInMatrixVersion: "1.4"
|
||||
items:
|
||||
type: string
|
||||
description: |-
|
||||
An optional list of [room types](/client-server-api/#types) to search
|
||||
for. To include rooms without a room type, specify `null` within this
|
||||
list. When not specified, all applicable rooms (regardless of type)
|
||||
are returned.
|
||||
include_all_networks:
|
||||
type: boolean
|
||||
description: |-
|
||||
|
@ -215,7 +225,8 @@ paths:
|
|||
example: {
|
||||
"limit": 10,
|
||||
"filter": {
|
||||
"generic_search_term": "foo"
|
||||
"generic_search_term": "foo",
|
||||
"room_types": [null, "m.space"]
|
||||
},
|
||||
"include_all_networks": false,
|
||||
"third_party_instance_id": "irc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue