2020-02-23 07:24:29 +00:00
|
|
|
get:
|
2020-03-03 19:11:21 +00:00
|
|
|
tags:
|
|
|
|
- Contact
|
|
|
|
operationId: contactList
|
2021-05-13 08:02:19 +00:00
|
|
|
description: Listing all the contacts with pagination (Page size = 15)
|
2020-02-23 19:21:31 +00:00
|
|
|
summary: List Contacts
|
2020-02-23 07:24:29 +00:00
|
|
|
parameters:
|
2021-05-13 08:02:19 +00:00
|
|
|
- $ref: '#/parameters/contact_sort_param'
|
|
|
|
- $ref: '#/parameters/page'
|
2020-02-23 07:24:29 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/contact_list'
|
|
|
|
400:
|
|
|
|
description: Bad Request Error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/bad_request_error'
|
|
|
|
|
|
|
|
post:
|
2020-03-03 19:11:21 +00:00
|
|
|
tags:
|
|
|
|
- Contact
|
|
|
|
operationId: contactCreate
|
2020-02-23 19:21:31 +00:00
|
|
|
description: Create New Contact
|
2020-08-17 07:37:12 +00:00
|
|
|
summary: Create Contact
|
2020-02-23 07:24:29 +00:00
|
|
|
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'
|