Browse Source

chore: update openapi & upgrade app version

pull/18/head
Aldino Kemal 4 years ago
parent
commit
f022e007d0
  1. 96
      docs/openapi.yaml
  2. 2
      src/config/settings.go

96
docs/openapi.yaml

@ -791,4 +791,100 @@ paths:
code: 500
message: you are not loggin
results: null
/send/contact:
post:
tags:
- send
summary: Send Contact
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
phone:
type: integer
example: '6289685024051'
contact_name:
type: string
example: Aldino Kemal
contact_phone:
type: string
example: '6289685024992'
type:
type: string
example: 'user'
description: 'user/group | default: user'
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: >-
Contact sent to 6289685024051@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

2
src/config/settings.go

@ -3,7 +3,7 @@ package config
type Browser string
var (
AppVersion string = "3.3.1"
AppVersion string = "3.4.0"
AppPort string = "3000"
AppDebug bool = false

Loading…
Cancel
Save