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

@@ -39,6 +39,48 @@ get:
$ref: '#/definitions/bad_request_error'
description: Access denied
get:
tags:
- Conversation
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
type: string
enum: ['me', 'unassigned', 'all']
- name: status
in: query
type: string
enum: ['open', 'resolved', 'bot']
- name: page
in: query
type: integer
- name: inbox_id
in: query
type: integer
- name: labels
in: query
type: array
items:
type: string
responses:
200:
description: Success
schema:
$ref: '#/definitions/conversation_list'
400:
description: Bad Request Error
schema:
$ref: '#/definitions/bad_request_error'
description: Access denied
post:
tags:
- Conversation