def get_decoders(self):
     return self.decoders + [IndexedByIdDecoder()]
Beispiel #2
0
class Bridge(MonitorMixin, Resource):
    lights = fields.ManagedCollection(Light, decoders=[IndexedByIdDecoder()])

    class Meta:
        endpoint = '/'