Chatwoot/swagger/paths/contact/crud.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

46 lines
910 B
YAML

get:
tags:
- Contact
operationId: contactDetails
summary: Show Contact
parameters:
- name: id
in: path
type: number
description: id of the contact
required: true
responses:
200:
description: Success
schema:
$ref: '#/definitions/extended_contact'
404:
description: Contact not found
403:
description: Access denied
put:
tags:
- Contact
operationId: contactUpdate
summary: Update Contact
parameters:
- name: id
in: path
type: number
description: id of the contact
required: true
- name: data
in: body
required: true
schema:
$ref: '#/definitions/contact_update'
responses:
204:
description: Success
schema:
$ref: '#/definitions/contact_base'
404:
description: Contact not found
403:
description: Access denied