Chatwoot/app/views/api/v1/models/_contact.json.jbuilder
Sojan Jose a6a62d92bf
chore: Add Additional Contact APIs (#1130)
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
2020-08-10 12:15:29 +05:30

12 lines
436 B
Ruby

json.additional_attributes resource.additional_attributes
json.availability_status resource.availability_status
json.email resource.email
json.id resource.id
json.name resource.name
json.phone_number resource.phone_number
json.thumbnail resource.avatar_url
json.contact_inboxes do
json.array! resource.contact_inboxes do |contact_inbox|
json.partial! 'api/v1/models/contact_inbox.json.jbuilder', resource: contact_inbox
end
end