Spec new query params for /publicRooms

pull/977/head
Erik Johnston 8 years ago
parent d81d0dbd1d
commit 877a6cfeb4

@ -32,6 +32,25 @@ paths:
Lists the public rooms on the server. Lists the public rooms on the server.
This API returns paginated responses. This API returns paginated responses.
parameters:
- in: query
name: limit
type: number
description: |-
Limit the number of results returned, ordered by number of
memebers in the room. Defaults to no limit.
- in: query
name: since
type: string
description: |-
A pagination token from a previous request, allowing clients to
get the next batch of rooms.
- in: query
name: server
type: string
description: |-
The server to fetch the public room lists from. Defaults to the
local server.
responses: responses:
200: 200:
description: A list of the rooms on the server. description: A list of the rooms on the server.
@ -87,14 +106,18 @@ paths:
avatar_url: avatar_url:
type: string type: string
description: The URL for the room's avatar, if one is set. description: The URL for the room's avatar, if one is set.
start: next_batch:
type: string type: string
description: |- description: |-
A pagination token for the response. A pagination token for the response, if there are any more results.
end: prev_batch:
type: string type: string
description: |- description: |-
A pagination token for the response. A pagination token for the response, if there are any more results.
total_room_count_estimate:
type: number
description: |-
An estimate on the total number of public rooms.
examples: examples:
application/json: |- application/json: |-
{ {
@ -110,8 +133,9 @@ paths:
"world_readable": true "world_readable": true
} }
], ],
"start": "p190q", "next_batch": "p190q",
"end": "p1902" "prev_batch": "p1902",
"total_room_count_estimate": 115
} }
400: 400:
description: > description: >

Loading…
Cancel
Save