Chatwoot/swagger/paths/contact/list_create.yml
Sony Mathew fabc6c87af
Chore: User Friendly URLs on the swagger docs (#590)
Made the swagger documentation urls short and readable.
2020-03-04 00:41:21 +05:30

40 lines
857 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
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'