Chatwoot/swagger/paths/contact/list_create.yml
Francois Falala-Sechet dfe4b70d91
chore: update swagger definitions (#1151)
update swagger definitions
2020-08-17 13:07:12 +05:30

41 lines
883 B
YAML

get:
tags:
- Contact
operationId: contactList
description: Listing all the contacts with pagination
summary: List Contacts
parameters:
- name: query_hash
in: query
type: string
responses:
200:
description: Success
schema:
$ref: '#/definitions/contact_list'
400:
description: Bad Request Error
schema:
$ref: '#/definitions/bad_request_error'
post:
tags:
- Contact
operationId: contactCreate
description: Create New Contact
summary: Create Contact
parameters:
- name: data
in: body
required: true
schema:
$ref: '#/definitions/contact_create'
responses:
200:
description: Success
schema:
$ref: '#/definitions/extended_contact'
400:
description: Bad Request Error
schema:
$ref: '#/definitions/bad_request_error'