feat: Ability to search conversation with message content (#1265)

- API end point which takes message content as search parameter
- end point supports additional filtering with labels and inbox ids
- swagger doc
This commit is contained in:
Sojan Jose
2020-09-23 15:27:41 +05:30
committed by GitHub
parent bc8becf49c
commit 532331edb6
7 changed files with 122 additions and 9 deletions

View File

@@ -283,10 +283,15 @@
"tags": [
"Conversation"
],
"operationId": "conversationList",
"description": "List all the conversations with pagination",
"summary": "Conversations List",
"operationId": "conversationSearch",
"description": "Search for conversations containing a messages with the query string",
"summary": "Conversations Search",
"parameters": [
{
"name": "q",
"in": "query",
"type": "string"
},
{
"name": "assignee_type",
"in": "query",
@@ -295,8 +300,7 @@
"me",
"unassigned",
"all"
],
"required": true
]
},
{
"name": "status",
@@ -306,14 +310,12 @@
"open",
"resolved",
"bot"
],
"required": true
]
},
{
"name": "page",
"in": "query",
"type": "integer",
"required": true
"type": "integer"
},
{
"name": "inbox_id",