[core] swagger chats

This commit is contained in:
devlikepro committed 2024-09-03 18:20:33 +07:00
1 parent 04f62700a2
commit efad4de0af
1 file changed
+3
+3
View File
@@ -44,6 +44,7 @@ class ChatsController {
@Delete(':chatId')
@SessionApiParam
@ApiOperation({ summary: 'Deletes the chat' })
@ChatIdApiParam
deleteChat(
@SessionParam session: WhatsappSession,
@Param('chatId') chatId: string,
@@ -54,6 +55,7 @@ class ChatsController {
@Get(':chatId/messages')
@SessionApiParam
@ApiOperation({ summary: 'Gets messages in the chat' })
@ChatIdApiParam
getChatMessages(
@Query() query: GetChatMessagesQuery,
@SessionParam session: WhatsappSession,
@@ -66,6 +68,7 @@ class ChatsController {
@Delete(':chatId/messages')
@SessionApiParam
@ApiOperation({ summary: 'Clears all messages from the chat' })
@ChatIdApiParam
clearMessages(
@SessionParam session: WhatsappSession,
@Param('chatId') chatId: string,