add file
This commit is contained in:
35
swagger.yml
Normal file
35
swagger.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
openapi: 3.0.0
|
||||
info:
|
||||
title: WAPP API
|
||||
version: 1.0.0
|
||||
|
||||
components:
|
||||
securitySchemes:
|
||||
ApiKeyAuth:
|
||||
type: apiKey
|
||||
in: header
|
||||
name: x-api-key
|
||||
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
|
||||
paths:
|
||||
/api/send:
|
||||
post:
|
||||
summary: Send a WhatsApp message
|
||||
security:
|
||||
- ApiKeyAuth: []
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
phoneNumber:
|
||||
type: string
|
||||
message:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
Reference in New Issue
Block a user