class EndpointSerializer < ActiveModel::Serializer
  attributes :name, :public, :certificate_id
end

class EndpointSerializer < ActiveModel::Serializer
  attributes :name, :public, :certificate_id
  belongs_to :district
end

Add district association to endpoint serializer
Add district association to endpoint serializer
