refactor: update swagger spec
This commit is contained in:
parent
33a2f0c121
commit
8bcedbeb14
1 changed files with 3 additions and 46 deletions
49
swagger.json
49
swagger.json
|
|
@ -2945,11 +2945,11 @@
|
|||
"properties": {
|
||||
"chatId": {
|
||||
"type": "string",
|
||||
"description": "The Chat id which contains the message (Group or Individual)"
|
||||
"description": "The chat id which contains the message (Group or Individual)"
|
||||
},
|
||||
"contentType": {
|
||||
"type": "string",
|
||||
"description": "The type of message content, must be one of the following: string, MessageMedia, MessageMediaFromURL, Location, Contact, Poll, Buttons, or List"
|
||||
"description": "The type of message content, must be one of the following: string, MessageMedia, MessageMediaFromURL, Location, Contact or Poll"
|
||||
},
|
||||
"content": {
|
||||
"type": "object",
|
||||
|
|
@ -2998,49 +2998,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"Buttons": {
|
||||
"value": {
|
||||
"chatId": "6281288888888@c.us",
|
||||
"contentType": "Buttons",
|
||||
"content": {
|
||||
"body": "Hello World!",
|
||||
"buttons": [
|
||||
{
|
||||
"body": "button 1"
|
||||
}
|
||||
],
|
||||
"title": "Hello World!",
|
||||
"footer": "Hello World!"
|
||||
}
|
||||
}
|
||||
},
|
||||
"List": {
|
||||
"value": {
|
||||
"chatId": "6281288888888@c.us",
|
||||
"contentType": "List",
|
||||
"content": {
|
||||
"body": "Hello World!",
|
||||
"buttonText": "Hello World!",
|
||||
"sections": [
|
||||
{
|
||||
"title": "sectionTitle",
|
||||
"rows": [
|
||||
{
|
||||
"id": "customId",
|
||||
"title": "ListItem2",
|
||||
"description": "desc"
|
||||
},
|
||||
{
|
||||
"title": "ListItem2"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": "Hello World!",
|
||||
"footer": "Hello World!"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Contact": {
|
||||
"value": {
|
||||
"chatId": "6281288888888@c.us",
|
||||
|
|
@ -8799,7 +8756,7 @@
|
|||
},
|
||||
"contentType": {
|
||||
"type": "string",
|
||||
"description": "The type of message content, must be one of the following: string, MessageMedia, MessageMediaFromURL, Location, Contact, Poll, Buttons, or List"
|
||||
"description": "The type of message content, must be one of the following: string, MessageMedia, MessageMediaFromURL, Location, Contact or Poll"
|
||||
},
|
||||
"content": {
|
||||
"type": "object",
|
||||
|
|
|
|||
Loading…
Reference in a new issue