From efad4de0af2f7baab87cfa02f7f7eb833b82c0a9 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Tue, 3 Sep 2024 18:20:33 +0700 Subject: [PATCH] [core] swagger chats --- src/api/chats.controller.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/chats.controller.ts b/src/api/chats.controller.ts index 70d93726..9b0ccab3 100644 --- a/src/api/chats.controller.ts +++ b/src/api/chats.controller.ts @@ -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,