Registrant API: Return associated domains for contact query

This commit is contained in:
Karl Erik Õunapuu 2020-12-03 16:12:36 +02:00
parent 15e090c3b1
commit 15d2ffe200
No known key found for this signature in database
GPG key ID: C9DD647298A34764
4 changed files with 26 additions and 14 deletions

View file

@ -58,7 +58,8 @@ module Serializers
valid_to: domain.valid_to, outzone_at: domain.outzone_at, statuses: domain.statuses,
registrant_verification_asked_at: domain.registrant_verification_asked_at,
registrar: { name: domain.registrar.name, website: domain.registrar.website },
registrant: { name: domain.registrant.name, id: domain.registrant.uuid }
registrant: { name: domain.registrant.name, id: domain.registrant.uuid,
phone: domain.registrant.phone, email: domain.registrant.email }
}
end