fix: open chat with active poll and add new endpoint
This commit is contained in:
parent
44346d9197
commit
588642e904
4 changed files with 171 additions and 26 deletions
136
swagger.json
136
swagger.json
|
|
@ -2876,7 +2876,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2888,7 +2888,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3396,7 +3396,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3408,7 +3408,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3600,10 +3600,10 @@
|
|||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"number": {
|
||||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "Number or ID",
|
||||
"example": ""
|
||||
"description": "ID of the chat",
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3612,10 +3612,10 @@
|
|||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"number": {
|
||||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "Number or ID",
|
||||
"example": ""
|
||||
"description": "ID of the chat",
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3803,7 +3803,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3815,7 +3815,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3903,7 +3903,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3915,7 +3915,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4003,7 +4003,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4015,7 +4015,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4645,7 +4645,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4657,7 +4657,7 @@
|
|||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": ""
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -4966,6 +4966,106 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/client/openChatWindow/{sessionId}": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"Client"
|
||||
],
|
||||
"summary": "Open the chat window",
|
||||
"description": "",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "sessionId",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Unique identifier for the session (alphanumeric and - allowed)",
|
||||
"example": "f8377d8d-a589-4242-9ba6-9486a04ef80c"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK"
|
||||
},
|
||||
"403": {
|
||||
"description": "Forbidden.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ForbiddenResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/NotFoundResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"422": {
|
||||
"description": "Unprocessable Entity.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Server failure.",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"apiKeyAuth": []
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"application/xml": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "ID of the chat",
|
||||
"example": "6281288888888@c.us"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/chat/getClassInfo/{sessionId}": {
|
||||
"post": {
|
||||
"tags": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue