mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 23:45:45 +01:00
feat: POST /api/v3/chats, chat room creation, plus openAPI docs update
This commit is contained in:
29
public/openapi/write/chats.yaml
Normal file
29
public/openapi/write/chats.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
Reference in New Issue
Block a user