feat(webapi): impl room deletion

This commit is contained in:
oxalica 2024-09-21 14:46:47 -04:00
parent 9acf857781
commit bc856f6c62
5 changed files with 205 additions and 25 deletions

View file

@ -264,6 +264,26 @@ paths:
schema:
$ref: '#/components/schemas/ApiError'
delete:
summary: Delete a room
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Signed-DeleteRoom'
responses:
204:
description: Operation completed.
401:
description: Missing or invalid Authorization header.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
/_blah/room/{rid}/admin:
post:
summary: Room management
@ -712,6 +732,34 @@ components:
peer:
type: string
Signed-DeleteRoom:
type: object
properties:
sig:
type: string
signee:
type: object
properties:
nonce:
type: integer
format: uint32
timestamp:
type: integer
format: uint64
id_key:
type: string
act_key:
type: string
payload:
type: object
properties:
typ:
type: string
const: 'delete_room'
room:
type: integer
format: in64
Signed-UserRegister:
type: object
properties: