chore: Add assigned option to conversation finder API (#2630)

- Adds the ability to filter all the conversations which are assigned
- Add rack timeout gem
- Remove size attribute from Sidekiq config
This commit is contained in:
Sojan Jose
2021-07-14 22:51:27 +05:30
committed by GitHub
parent 3d18ec9e40
commit d7982a6ffd
12 changed files with 153 additions and 70 deletions

View File

@@ -1406,7 +1406,8 @@
"enum": [
"me",
"unassigned",
"all"
"all",
"assigned"
]
},
{
@@ -1542,6 +1543,78 @@
}
}
},
"/api/v1/accounts/{account_id}/conversations/": {
"get": {
"tags": [
"Conversation"
],
"operationId": "conversationList",
"description": "List all the conversations with pagination",
"summary": "Conversations List",
"parameters": [
{
"$ref": "#/parameters/account_id"
},
{
"name": "assignee_type",
"in": "query",
"type": "string",
"enum": [
"me",
"unassigned",
"all",
"assigned"
],
"required": true
},
{
"name": "status",
"in": "query",
"type": "string",
"enum": [
"open",
"resolved",
"bot"
],
"required": true
},
{
"name": "page",
"in": "query",
"type": "integer",
"required": true
},
{
"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"
}
}
},
"/api/v1/accounts/{account_id}/conversations/{converstion_id}": {
"parameters": [
{