You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
754 B
YAML
29 lines
754 B
YAML
3 years ago
|
post:
|
||
|
tags:
|
||
|
- chats
|
||
|
summary: create a chat room
|
||
|
description: This operation creates a new chat room and adds users to the room, if provided.
|
||
|
requestBody:
|
||
|
required: true
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
type: object
|
||
|
properties:
|
||
|
uids:
|
||
|
type: array
|
||
|
example: [2, 3]
|
||
|
required:
|
||
|
- uids
|
||
|
responses:
|
||
|
'200':
|
||
|
description: chat room successfully created
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
type: object
|
||
|
properties:
|
||
|
status:
|
||
|
$ref: ../components/schemas/Status.yaml#/Status
|
||
|
response:
|
||
|
$ref: ../components/schemas/Chats.yaml#/RoomObject
|