-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bb912d
commit 9cb8f75
Showing
4 changed files
with
45 additions
and
5 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: 4.1.0 | ||
version: 4.2.0 | ||
description: This API is used for sending whatsapp via API | ||
servers: | ||
- url: http://localhost:3000 | ||
|
@@ -36,6 +36,32 @@ paths: | |
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorInternalServer' | ||
/app/login-with-code: | ||
get: | ||
operationId: appLoginWithCode | ||
tags: | ||
- app | ||
summary: Login with pairing code | ||
parameters: | ||
- name: phone | ||
in: query | ||
schema: | ||
type: string | ||
example: '628912344551' | ||
description: Your phone number | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/LoginWithCodeResponse' | ||
'500': | ||
description: Internal Server Error | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorInternalServer' | ||
/app/logout: | ||
get: | ||
operationId: appLogout | ||
|
@@ -1241,6 +1267,21 @@ components: | |
device: | ||
type: string | ||
example: '628960561XXX.0:[email protected]' | ||
LoginWithCodeResponse: | ||
type: object | ||
properties: | ||
code: | ||
type: string | ||
example: SUCCESS | ||
message: | ||
type: string | ||
example: Success | ||
results: | ||
type: object | ||
properties: | ||
pair_code: | ||
type: string | ||
example: ABCD-1234 | ||
LoginResponse: | ||
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