2020-02-23 07:24:29 +00:00
|
|
|
get:
|
|
|
|
tags: [Contact]
|
|
|
|
summary: Show Contact
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
type: number
|
2020-02-23 19:21:31 +00:00
|
|
|
description: id of the contact
|
2020-02-23 07:24:29 +00:00
|
|
|
required: true
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/extended_contact'
|
|
|
|
404:
|
|
|
|
description: Contact not found
|
|
|
|
403:
|
|
|
|
description: Access denied
|
|
|
|
|
|
|
|
put:
|
|
|
|
tags: [Contact]
|
|
|
|
summary: Update Contact
|
|
|
|
parameters:
|
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
type: number
|
2020-02-23 19:21:31 +00:00
|
|
|
description: id of the contact
|
2020-02-23 07:24:29 +00:00
|
|
|
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
|