Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
This commit is contained in:
9
app/views/api/v1/contacts/index.json.jbuilder
Normal file
9
app/views/api/v1/contacts/index.json.jbuilder
Normal file
@@ -0,0 +1,9 @@
|
||||
json.payload do
|
||||
json.array! @contacts do |contact|
|
||||
json.id contact.id
|
||||
json.name contact.name
|
||||
json.email contact.email
|
||||
json.phone_number contact.phone_number
|
||||
json.thumbnail contact.avatar.thumb.url
|
||||
end
|
||||
end
|
||||
7
app/views/api/v1/contacts/show.json.jbuilder
Normal file
7
app/views/api/v1/contacts/show.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
json.payload do
|
||||
json.id @contact.id
|
||||
json.name @contact.name
|
||||
json.email @contact.email
|
||||
json.phone_number @contact.phone_number
|
||||
json.thumbnail @contact.avatar.thumb.url
|
||||
end
|
||||
7
app/views/api/v1/contacts/update.json.jbuilder
Normal file
7
app/views/api/v1/contacts/update.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
json.payload do
|
||||
json.id @contact.id
|
||||
json.name @contact.name
|
||||
json.email @contact.email
|
||||
json.phone_number @contact.phone_number
|
||||
json.thumbnail @contact.avatar.thumb.url
|
||||
end
|
||||
Reference in New Issue
Block a user