From 679f8118f6fc16e806dbeb13ec12f6743644ffa7 Mon Sep 17 00:00:00 2001 From: Judson Junior Date: Tue, 23 Jan 2024 23:59:12 -0300 Subject: [PATCH] Added sendList endpoint to swagger documentation --- src/docs/swagger.yaml | 67 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/src/docs/swagger.yaml b/src/docs/swagger.yaml index 924434e9..d3301cae 100644 --- a/src/docs/swagger.yaml +++ b/src/docs/swagger.yaml @@ -940,7 +940,72 @@ paths: description: Successful response content: application/json: {} - + /message/sendList/{instanceName}: + post: + tags: + - Send Message Controller + summary: Send a list to a specified instance. + description: This endpoint allows users to send a list to a chat. + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + number: + type: string + options: + type: object + properties: + delay: + type: integer + presence: + type: string + listMessage: + type: object + properties: + title: + type: string + description: + type: string + footerText: + type: string + nullable: true + buttonText: + type: string + sections: + type: array + items: + type: object + properties: + title: + type: string + rows: + type: array + items: + type: object + properties: + title: + type: string + description: + type: string + rowId: + type: string + parameters: + - name: instanceName + in: path + required: true + schema: + type: string + description: The name of the instance to which the poll should be sent. + example: "evolution" + responses: + "200": + description: Successful response + content: + application/json: {} + /chat/whatsappNumbers/{instanceName}: post: tags: