Chatwoot/swagger/definitions/index.yml

73 lines
1.7 KiB
YAML
Raw Normal View History

2020-02-23 07:24:29 +00:00
# ERROR
bad_request_error:
$ref: ./error/bad_request.yml
request_error:
$ref: ./error/request.yml
# RESOURCE
generic_id:
$ref: ./resource/extension/generic.yml
2020-02-23 07:24:29 +00:00
contact:
$ref: ./resource/contact.yml
conversation:
$ref: ./resource/conversation.yml
message:
$ref: ./resource/message.yml
user:
$ref: ./resource/user.yml
2020-02-23 07:24:29 +00:00
# RESPONSE
## contact
2020-02-23 07:24:29 +00:00
extended_contact:
allOf:
- $ref: '#/definitions/contact'
- $ref: ./resource/extension/contact/show.yml
contact_base:
allOf:
- $ref: '#/definitions/generic_id'
2020-02-23 07:24:29 +00:00
- $ref: '#/definitions/contact'
contact_list:
type: array
description: 'array of contacts'
2020-02-23 07:24:29 +00:00
items:
allOf:
- $ref: '#/definitions/generic_id'
2020-02-23 07:24:29 +00:00
- $ref: '#/definitions/contact'
contact_conversations:
type: array
description: 'array of conversations'
2020-02-23 07:24:29 +00:00
items:
allOf:
- $ref: '#/definitions/conversation'
- $ref: ./resource/extension/contact/conversation.yml
- $ref: ./resource/extension/conversation/with_display_id.yml
## conversation
conversation_list:
$ref: ./resource/extension/conversation/list.yml
conversation_show:
$ref: ./resource/extension/conversation/show.yml
conversation_status_toggle:
$ref: ./resource/extension/conversation/status_toggle.yml
conversation_labels:
$ref: ./resource/extension/conversation/labels.yml
## message
extended_message:
allOf:
- $ref: '#/definitions/generic_id'
- $ref: '#/definitions/message'
- $ref: ./resource/extension/message/with_source_sender.yml
2020-02-23 07:24:29 +00:00
# REQUEST
## contact
2020-02-23 07:24:29 +00:00
contact_create:
$ref: ./request/contact/create.yml
contact_update:
$ref: ./request/contact/update.yml
## conversation
conversation_message_create:
$ref: ./request/conversation/create_message.yml