lib/nucleus_api/api/entities/collections/domains.rb
module Nucleus
module API
module Models
class Domains < CollectionEntity
# The name of the entity to be used
def self.entity_name
'DomainList'
end
item_collection('domains', 'domains', Models::Domain)
basic_links('endpoints/%{endpoint_id}/applications/%{application_id}', 'domains')
end
end
end
end