feat: Sort contacts via name, email, phone_number, last_activity_at (#1870)

This commit is contained in:
Pranav Raj S
2021-05-13 13:32:19 +05:30
committed by GitHub
parent 368bab2553
commit 0e6cd699e8
24 changed files with 279 additions and 76 deletions

View File

@@ -0,0 +1,15 @@
in: query
name: sort
schema:
type: string
enum:
- name
- email
- phone_number
- last_activity_at
- -name
- -email
- -phone_number
- -last_activity_at
required: false
description: The attribute by which list should be sorted

View File

@@ -4,7 +4,6 @@ account_id:
team_id:
$ref: ./team_id.yml
source_id:
$ref: ./source_id.yml
@@ -14,3 +13,8 @@ conversation_id:
message_id:
$ref: ./message_id.yml
contact_sort_param:
$ref: ./contact_sort.yml
page:
$ref: ./page.yml

View File

@@ -0,0 +1,7 @@
in: query
name: page
schema:
type: integer
default: 1
required: false
description: The page parameter