Browse Source

chore: update openapi

pull/15/head
Aldino Kemal 4 years ago
parent
commit
6528d0f2d4
  1. 108
      docs/openapi.yaml

108
docs/openapi.yaml

@ -1,7 +1,7 @@
openapi: 3.0.0 openapi: 3.0.0
info: info:
title: WhatsApp API MultiDevice title: WhatsApp API MultiDevice
version: 2.2.1
version: 2.3.0
description: This API is used for sending whatsapp via API description: This API is used for sending whatsapp via API
servers: servers:
- url: http://localhost:3000 - url: http://localhost:3000
@ -606,9 +606,6 @@ paths:
caption: caption:
type: string type: string
example: selamat malam example: selamat malam
view_once:
type: boolean
example: 'false'
file: file:
type: string type: string
format: binary format: binary
@ -689,3 +686,106 @@ paths:
code: 500 code: 500
message: you are not loggin message: you are not loggin
results: null results: null
/send/video:
post:
tags:
- send
summary: Send Video
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
phone:
type: integer
example: '6289685024091'
caption:
type: string
example: ini contoh caption video
view_once:
type: boolean
example: 'false'
video:
type: string
format: binary
type:
type: string
example: 'user'
description: 'user/group | default: user'
compress:
type: boolean
example: 'false'
responses:
'200':
description: OK
headers:
Date:
schema:
type: string
example: Fri, 11 Feb 2022 03:42:57 GMT
Content-Type:
schema:
type: string
example: application/json
Content-Length:
schema:
type: integer
example: '123'
content:
application/json:
schema:
type: object
example:
code: 200
message: Success
results:
status: >-
Video sent to 6289685024091@s.whatsapp.net (server timestamp: 2022-05-17 14:39:29 +0700 WIB)
'400':
description: Bad Request
headers:
Date:
schema:
type: string
example: Fri, 11 Feb 2022 03:02:17 GMT
Content-Type:
schema:
type: string
example: application/json
Content-Length:
schema:
type: integer
example: '70'
content:
application/json:
schema:
type: object
example:
code: 400
message: 'phone: cannot be blank.'
results: null
'500':
description: Internal Server Error
headers:
Date:
schema:
type: string
example: Fri, 11 Feb 2022 03:02:48 GMT
Content-Type:
schema:
type: string
example: application/json
Content-Length:
schema:
type: integer
example: '58'
content:
application/json:
schema:
type: object
example:
code: 500
message: you are not loggin
results: null
Loading…
Cancel
Save