mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-03 07:01:35 -06:00
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:
+22
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user