iachat/swagger/paths/contact/list_create.yml
2020-02-23 12:54:29 +05:30

37 lines
787 B
YAML

get:
tags: [Contact]
description: Listing all 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]
description: Create a 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'