refactor(webapi): move create-room endpoint and deprecate old one

This commit is contained in:
oxalica 2024-10-12 14:12:12 -04:00
parent 920a1cc3b9
commit 1ecea448a2
3 changed files with 13 additions and 7 deletions

View file

@ -224,7 +224,6 @@ paths:
schema:
$ref: '#/components/schemas/ApiError'
/_blah/room/create:
post:
summary: Create a room
@ -272,6 +271,13 @@ paths:
schema:
$ref: '#/components/schemas/ApiError'
/_blah/room/create:
post:
summary: Create a room (legacy)
deprecated: true
description: |
Alias of POST `/_blah/room`.
/_blah/room/{rid}:
get:
summary: Get room metadata