Add room paused state (#163)

* add room_Paused from cniu6

* fix "OpenAPi.yml" and api-request

* remove unpaused event and change start event to unpause as well.

* update openapi bindings.

* do not wait for ready when unpausing container.

* fix room create.

* add paused state to Lobby.

* fix roomRecreate.

---------

Co-authored-by: zerohh <zerohh666@163.com>
Co-authored-by: Miroslav Šedivý <sedivy.miro@gmail.com>
This commit is contained in:
zerohh
2025-05-28 21:54:27 +08:00
committed by GitHub
parent 8256bcaf99
commit 1013e80034
17 changed files with 412 additions and 138 deletions
+22
View File
@@ -254,6 +254,25 @@ paths:
description: Room not found
'500':
description: Internal server error
/api/rooms/{roomId}/pause:
post:
tags:
- rooms
summary: Pause room
operationId: roomPause
parameters:
- in: path
name: roomId
required: true
schema:
type: string
responses:
'204':
description: OK
'404':
description: Room not found
'500':
description: Internal server error
/api/rooms/{roomId}/recreate:
post:
tags:
@@ -414,6 +433,9 @@ components:
running:
type: boolean
example: true
paused:
type: boolean
example: false
is_ready:
type: boolean
example: true