chore: Add swagger docs for Canned Responses (#4295)

fixes: #3962
This commit is contained in:
Sojan Jose
2022-03-26 00:43:44 +05:30
committed by GitHub
parent 971755b845
commit e0f29b9d81
11 changed files with 328 additions and 3 deletions

View File

@@ -12,6 +12,8 @@ request_error:
generic_id:
$ref: ./resource/extension/generic.yml
canned_response:
$ref: ./resource/canned_response.yml
contact:
$ref: ./resource/contact.yml
conversation:
@@ -64,6 +66,9 @@ agent_bot_create_update_payload:
user_create_update_payload:
$ref: ./request/user/create_update_payload.yml
canned_response_create_update_payload:
$ref: ./request/canned_response/create_update_payload.yml
## contact
contact_create:
$ref: ./request/contact/create.yml

View File

@@ -0,0 +1,8 @@
type: object
properties:
content:
type: string
description: Message content for canned response
short_code:
type: string
description: Short Code for quick access of the canned response

View File

@@ -0,0 +1,14 @@
type: object
properties:
id:
type: integer
description: ID of the canned response
content:
type: string
description: Message content for canned response
short_code:
type: string
description: Short Code for quick access of the canned response
account_id:
type: integer
description: Account Id