feat(webapi): impl member information query

This commit is contained in:
oxalica 2024-10-12 13:57:43 -04:00
parent 8378c4d230
commit 920a1cc3b9
4 changed files with 74 additions and 4 deletions

View file

@ -595,6 +595,32 @@ paths:
$ref: '#/components/schemas/ApiError'
/_blah/room/{rid}/member/{member_id_key}:
get:
summary: Get information of a room member
parameters:
- name: Authorization
in: header
description: User authentication token.
schema:
$ref: '#/components/schemas/Signed-Auth'
responses:
200:
content:
application/json:
schema:
$ref: '#/components/schemas/RoomMember'
404:
description: |
Room does not exist, the user does not have permission for the
operation, or the operand user is not a room member.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
patch:
summary: Update permission of a room member