Chore: Swagger Docs V1 (#546)

This commit is contained in:
Sony Mathew
2020-02-23 12:54:29 +05:30
committed by GitHub
parent eea92bd0ac
commit e2688d5176
25 changed files with 739 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
type: object
properties:
email:
type: string
name:
type: string
phone_number:
type: string
thumbnail:
type: string
additional_attributes:
type: object

View File

@@ -0,0 +1,21 @@
type: object
properties:
display_id:
type: number
messages:
type: array
items:
type: object
inbox_id:
type: number
status:
type: string
enum: ['open', 'resolved']
timestamp:
type: string
user_last_seen_at:
type: string
agent_last_seen_at:
type: agent_last_seen_at
unread_count:
type: number

View File

@@ -0,0 +1,18 @@
type: object
properties:
meta:
type: object
properties:
sender:
type: object
properties:
id:
type: number
name:
type: string
thumbnail:
type: string
channel:
type: string
assignee:
type: object

View File

@@ -0,0 +1,5 @@
type: object
properties:
allOf:
- $ref: '#/definitions/contact'
- $ref: ./resource/extension/contact.yaml

View File

@@ -0,0 +1,7 @@
type: object
properties:
id:
type: number
availability_status:
type: string
enum: ['online', 'offline']

View File

@@ -0,0 +1,4 @@
type: object
properties:
id:
type: number