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

Add district association to endpoint serializer
user
```ruby
class EndpointSerializer < ActiveModel::Serializer
  attributes :name, :public, :certificate_id
  belongs_to :district
end
```
assistant