diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 69a3607..60533b8 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -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: 1203632782168851111@g.us + 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: '6289987391723@s.whatsapp.net' + status: + type: string + example: success + message: + type: string + example: Participant added + UserGroupResponse: type: object properties: