Skip to content

Commit

Permalink
docs: Improovment on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta authored and github-actions[bot] committed Jun 1, 2023
1 parent 22013f6 commit 9879462
Showing 1 changed file with 145 additions and 84 deletions.
229 changes: 145 additions & 84 deletions src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,20 +294,6 @@
"type": "string",
"example": "NERDWHATS_AMERICA"
}
},
{
"name": "obj",
"in": "body",
"schema": {
"type": "object",
"properties": {
"clearSession": {
"type": "boolean",
"example": false
}
},
"required": ["clearSession"]
}
}
],
"responses": {
Expand All @@ -322,7 +308,25 @@
{
"bearerAuth": []
}
]
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"clearSession": {
"type": "boolean"
}
}
},
"example": {
"clearSession": false
}
}
}
}
}
},
"/api/{session}/qrcode-session": {
Expand Down Expand Up @@ -368,28 +372,36 @@
"type": "string",
"example": "NERDWHATS_AMERICA"
}
},
{
"name": "obj",
"in": "body",
"schema": {
"type": "object",
"properties": {
"waitQrCode": {
"type": "boolean",
"example": false
}
},
"required": ["waitQrCode"]
}
}
],
"responses": {},
"security": [
{
"bearerAuth": []
}
]
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"webhook": {
"type": "string"
},
"waitQrCode": {
"type": "boolean"
}
}
},
"example": {
"webhook": "https://webhook.site/7cc2944d-3967-4cea-988c-d57ea80bce5f",
"waitQrCode": false
}
}
}
}
}
},
"/api/{session}/logout-session": {
Expand Down Expand Up @@ -472,20 +484,6 @@
"type": "string",
"example": "NERDWHATS_AMERICA"
}
},
{
"name": "obj",
"in": "body",
"schema": {
"type": "object",
"properties": {
"clearSession": {
"type": "boolean",
"example": false
}
},
"required": ["clearSession"]
}
}
],
"responses": {
Expand All @@ -500,7 +498,25 @@
{
"bearerAuth": []
}
]
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"clearSession": {
"type": "boolean"
}
}
},
"example": {
"clearSession": false
}
}
}
}
}
},
"/api/{session}/subscribe-presence": {
Expand All @@ -516,28 +532,6 @@
"type": "string",
"example": "NERDWHATS_AMERICA"
}
},
{
"name": "obj",
"in": "body",
"schema": {
"type": "object",
"properties": {
"phone": {
"type": "string",
"example": "5521999999999"
},
"isGroup": {
"type": "boolean",
"example": false
},
"all": {
"type": "string",
"example": "false"
}
},
"required": ["phone", "isGroup", "all"]
}
}
],
"responses": {
Expand All @@ -552,7 +546,33 @@
{
"bearerAuth": []
}
]
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"phone": {
"type": "string"
},
"isGroup": {
"type": "boolean"
},
"all": {
"type": "boolean"
}
}
},
"example": {
"phone": "5521999999999",
"isGroup": false,
"all": false
}
}
}
}
}
},
"/api/{session}/download-media": {
Expand All @@ -568,20 +588,6 @@
"type": "string",
"example": "NERDWHATS_AMERICA"
}
},
{
"name": "obj",
"in": "body",
"schema": {
"type": "object",
"properties": {
"messageId": {
"type": "string",
"example": "<messageId>"
}
},
"required": ["messageId"]
}
}
],
"responses": {
Expand All @@ -596,7 +602,25 @@
{
"bearerAuth": []
}
]
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"messageId": {
"type": "string"
}
}
},
"example": {
"messageId": "<messageId>"
}
}
}
}
}
},
"/api/{session}/send-message": {
Expand Down Expand Up @@ -5777,7 +5801,44 @@
{
"bearerAuth": []
}
]
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"adress": {
"type": "string"
},
"email": {
"type": "string"
},
"categories": {
"type": "object"
},
"websites": {
"type": "array"
}
}
},
"example": {
"adress": "Av. Nossa Senhora de Copacabana, 315",
"email": "test@test.com.br",
"categories": {
"$id": "133436743388217",
"$localized_display_name": "Artes e entretenimento",
"$not_a_biz": false
},
"website": [
"https://www.wppconnect.io",
"https://www.teste2.com.br"
]
}
}
}
}
}
},
"/api/{session}/get-business-profiles-products": {
Expand Down

0 comments on commit 9879462

Please sign in to comment.