Skip to content

Commit

Permalink
fix: Fixed payload get-group-members in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Dec 24, 2023
1 parent deea12c commit b49f12b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 48 deletions.
21 changes: 0 additions & 21 deletions src/controller/groupController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,27 +235,6 @@ export async function getGroupMembers(req: Request, res: Response) {
#swagger.parameters["session"] = {
schema: 'NERDWHATS_AMERICA'
}
#swagger.requestBody = {
required: true,
content: {
"application/json": {
schema: {
type: "object",
properties: {
groupId: { type: "string" }
},
required: ["groupId"]
},
examples: {
"Default": {
value: {
groupId: "<groupId>"
}
}
}
}
}
}
*/
const { groupId } = req.params;

Expand Down
56 changes: 29 additions & 27 deletions src/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,9 @@
"isGroup": {
"type": "boolean"
},
"isNewsletter": {
"type": "boolean"
},
"message": {
"type": "string"
},
Expand All @@ -612,6 +615,7 @@
"value": {
"phone": "5521999999999",
"isGroup": false,
"isNewsletter": false,
"message": "Hi from WPPConnect"
}
},
Expand Down Expand Up @@ -725,6 +729,9 @@
"isGroup": {
"type": "boolean"
},
"isNewsletter": {
"type": "boolean"
},
"filename": {
"type": "string"
},
Expand All @@ -741,6 +748,7 @@
"value": {
"phone": "5521999999999",
"isGroup": false,
"isNewsletter": false,
"filename": "file name lol",
"caption": "caption for my file",
"base64": "<base64> string"
Expand Down Expand Up @@ -976,6 +984,9 @@
"isGroup": {
"type": "boolean"
},
"isNewsletter": {
"type": "boolean"
},
"filename": {
"type": "string"
},
Expand All @@ -992,6 +1003,7 @@
"value": {
"phone": "5521999999999",
"isGroup": false,
"isNewsletter": false,
"filename": "file name lol",
"caption": "caption for my file",
"base64": "<base64> string"
Expand Down Expand Up @@ -1044,6 +1056,9 @@
"isGroup": {
"type": "boolean"
},
"isNewsletter": {
"type": "boolean"
},
"filename": {
"type": "string"
},
Expand All @@ -1060,6 +1075,7 @@
"value": {
"phone": "5521999999999",
"isGroup": false,
"isNewsletter": false,
"filename": "file name lol",
"caption": "caption for my file",
"base64": "<base64> string"
Expand Down Expand Up @@ -1896,30 +1912,7 @@
{
"bearerAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"groupId": {
"type": "string"
}
},
"required": ["groupId"]
},
"examples": {
"Default": {
"value": {
"groupId": "<groupId>"
}
}
}
}
}
}
]
}
},
"/api/{session}/common-groups/{wid}": {
Expand Down Expand Up @@ -2592,7 +2585,7 @@
"schema": {
"type": "object",
"properties": {
"invitecode": {
"$invitecode": {
"type": "string"
}
}
Expand Down Expand Up @@ -3976,6 +3969,9 @@
"200": {
"description": "OK"
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Internal Server Error"
}
Expand All @@ -4000,6 +3996,12 @@
},
"messageId": {
"type": "string"
},
"onlyLocal": {
"type": "boolean"
},
"deleteMediaInDevice": {
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -4114,7 +4116,7 @@
"isGroup": {
"type": "boolean"
},
"messageid": {
"messageId": {
"type": "string"
}
}
Expand All @@ -4124,7 +4126,7 @@
"value": {
"phone": "5521999999999",
"isGroup": false,
"messageid": "<messageId>"
"messageId": "<messageId>"
}
}
}
Expand Down

0 comments on commit b49f12b

Please sign in to comment.