mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-11 00:25:34 +00:00
Impl room listing with filter=unseen
This commit is contained in:
parent
e74da2812b
commit
8b096ba802
2 changed files with 51 additions and 6 deletions
|
@ -24,10 +24,11 @@ paths:
|
|||
in: query
|
||||
required: true
|
||||
description: |
|
||||
Either "public" or "joined".
|
||||
For "public", it returns all public rooms on the server.
|
||||
For "joined", `Authorization` must be provided and it will return
|
||||
rooms user have joined.
|
||||
Must be one of following values:
|
||||
- "public": list all public rooms on the server.
|
||||
- "joined": list rooms the user have joined.
|
||||
- "unseen": list rooms the user have joined and have unseen
|
||||
messages.
|
||||
top:
|
||||
in: query
|
||||
description:
|
||||
|
@ -41,7 +42,9 @@ paths:
|
|||
should be included (as the same value) for each page fetch.
|
||||
headers:
|
||||
Authorization:
|
||||
description: Proof of membership for private rooms. Required if `filter=joined`.
|
||||
description: |
|
||||
Proof of membership for private rooms.
|
||||
Required if `filter` is other than "public".
|
||||
required: false
|
||||
schema:
|
||||
$ret: WithSig<AuthPayload>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue