chore: Ability to create contact with identifiers (#2802)

This commit is contained in:
Sojan Jose
2021-08-13 13:02:46 +05:30
committed by GitHub
parent d492a65c24
commit acb39cbc8f
7 changed files with 53 additions and 11 deletions

View File

@@ -5,7 +5,13 @@ properties:
required: true
name:
type: string
description: name of the contact
email:
type: string
description: email of the contact
phone_number:
type: string
description: phone number of the contact
identifier:
type: string
description: A unique identifier for the contact in external system

View File

@@ -2,7 +2,13 @@ type: object
properties:
name:
type: string
description: name of the contact
email:
type: string
description: email of the contact
phone_number:
type: string
description: phone number of the contact
identifier:
type: string
description: A unique identifier for the contact in external system

View File

@@ -8,6 +8,7 @@ get:
- name: q
in: query
type: string
description: Search using contact `name`, `identifier`, `email` or `phone number`
- $ref: '#/parameters/contact_sort_param'
- $ref: '#/parameters/page'
responses:

View File

@@ -1281,7 +1281,8 @@
{
"name": "q",
"in": "query",
"type": "string"
"type": "string",
"description": "Search using contact `name`, `identifier`, `email` or `phone number`"
},
{
"$ref": "#/parameters/contact_sort_param"
@@ -3376,13 +3377,20 @@
"required": true
},
"name": {
"type": "string"
"type": "string",
"description": "name of the contact"
},
"email": {
"type": "string"
"type": "string",
"description": "email of the contact"
},
"phone_number": {
"type": "string"
"type": "string",
"description": "phone number of the contact"
},
"identifier": {
"type": "string",
"description": "A unique identifier for the contact in external system"
}
}
},
@@ -3390,13 +3398,20 @@
"type": "object",
"properties": {
"name": {
"type": "string"
"type": "string",
"description": "name of the contact"
},
"email": {
"type": "string"
"type": "string",
"description": "email of the contact"
},
"phone_number": {
"type": "string"
"type": "string",
"description": "phone number of the contact"
},
"identifier": {
"type": "string",
"description": "A unique identifier for the contact in external system"
}
}
},