-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add group participant api * fix: sanitize leave group * chore: update openapi * feat: ui add participant * chore: update docs * chore: update docs * chore: update docs
- Loading branch information
1 parent
21a451c
commit e78767d
Showing
10 changed files
with
348 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: WhatsApp API MultiDevice | ||
version: 3.10.1 | ||
version: 3.11.0 | ||
description: This API is used for sending whatsapp via API | ||
servers: | ||
- url: http://localhost:3000 | ||
|
@@ -773,7 +773,53 @@ paths: | |
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/SendResponse' | ||
$ref: '#/components/schemas/CreateGroupResponse' | ||
'400': | ||
description: Bad Request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorBadRequest' | ||
'500': | ||
description: Internal Server Error | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorInternalServer' | ||
/group/participants: | ||
post: | ||
operationId: addParticipantToGroup | ||
tags: | ||
- group | ||
summary: Adding more participants to group | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
group_id: | ||
type: string | ||
example: '120363228882361111' | ||
participants: | ||
type: array | ||
items: | ||
type: string | ||
example: | ||
- '6819241294719274' | ||
- '6829241294719274' | ||
- '6839241294719274' | ||
example: | ||
- '6819241294719274' | ||
- '6829241294719274' | ||
- '6839241294719274' | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/AddParticipantToGroupResponse' | ||
'400': | ||
description: Bad Request | ||
content: | ||
|
@@ -807,7 +853,7 @@ paths: | |
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/SendResponse' | ||
$ref: '#/components/schemas/GenericResponse' | ||
'400': | ||
description: Bad Request | ||
content: | ||
|
@@ -857,6 +903,44 @@ paths: | |
|
||
components: | ||
schemas: | ||
CreateGroupResponse: | ||
type: object | ||
properties: | ||
code: | ||
type: string | ||
example: SUCCESS | ||
message: | ||
type: string | ||
example: Success get list groups | ||
results: | ||
type: object | ||
properties: | ||
group_id: | ||
type: string | ||
example: [email protected] | ||
AddParticipantToGroupResponse: | ||
type: object | ||
properties: | ||
code: | ||
type: string | ||
example: SUCCESS | ||
message: | ||
type: string | ||
example: Success get list groups | ||
results: | ||
type: array | ||
items: | ||
properties: | ||
participant: | ||
type: string | ||
example: '[email protected]' | ||
status: | ||
type: string | ||
example: success | ||
message: | ||
type: string | ||
example: Participant added | ||
|
||
UserGroupResponse: | ||
type: object | ||
properties: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.