From a09db8fb9798f7b58ca7bea786a703021f61929d Mon Sep 17 00:00:00 2001 From: Aldino Kemal Date: Sat, 6 Apr 2024 09:12:06 +0700 Subject: [PATCH] chore: update openapi --- docs/openapi.yaml | 42 +++++++++++++++++++++++++++++++++++++++++- readme.md | 6 +++--- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 889838c..a99cd68 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: WhatsApp API MultiDevice - version: 3.9.0 + version: 3.10.0 description: This API is used for sending whatsapp via API servers: - url: http://localhost:3000 @@ -740,6 +740,46 @@ paths: application/json: schema: $ref: '#/components/schemas/ErrorInternalServer' + /group: + post: + operationId: createGroup + tags: + - group + summary: Create group and add participant + requestBody: + content: + application/json: + schema: + type: object + properties: + title: + type: string + example: 'Example Group Title' + participants: + type: array + example: + - '6819241294719274' + - '6829241294719274' + - '6839241294719274' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SendResponse' + '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/join-with-link: post: operationId: joinGroupWithLink diff --git a/readme.md b/readme.md index d87e9a5..8e00a0a 100644 --- a/readme.md +++ b/readme.md @@ -135,7 +135,7 @@ API using [openapi-generator](https://openapi-generator.tech/#try) ### App User Interface 1. Homepage ![Homepage](https://i.ibb.co/TBNcFT0/homepage.png) -2. Login ![Login](https://i.ibb.co/jkcB15R/login.png) +2. Login ![Login](https://i.ibb.co/jkcB15R/login.png?v=1) 3. Send Message ![Send Message](https://i.ibb.co/rc3NXMX/send-message.png?v1) 4. Send Image ![Send Image](https://i.ibb.co/BcFL3SD/send-image.png?v1) 5. Send File ![Send File](https://i.ibb.co/f4yxjpp/send-file.png) @@ -147,8 +147,8 @@ API using [openapi-generator](https://openapi-generator.tech/#try) 11. Revoke Message ![Revoke Message](https://i.ibb.co/yswhvQY/revoke.png?v1) 12. Reaction Message ![Revoke Message](https://i.ibb.co/BfHgSHG/react-message.png) 13. Edit Message ![Edit Message](https://i.ibb.co/kXfpqJw/update-message.png) -14. User Info ![User Info](https://i.ibb.co/3zjX6Cz/user-info.png) -15. User Avatar ![User Avatar](https://i.ibb.co/ZmJZ4ZW/search-avatar.png) +14. User Info ![User Info](https://i.ibb.co/3zjX6Cz/user-info.png?v=1) +15. User Avatar ![User Avatar](https://i.ibb.co/ZmJZ4ZW/search-avatar.png?v=1) 16. My Privacy ![My Privacy](https://i.ibb.co/Cw1sMQz/my-privacy.png) 17. My Group ![My Group](https://i.ibb.co/WB268Xy/list-group.png) 18. Auto Reply ![Auto Reply](https://i.ibb.co/D4rTytX/IMG-20220517-162500.jpg)