Пример #1
0
 def get(self):
     schema = NotificationSchema(
         exclude=[
             "type",
             "extra_params",
         ],
         many=True,
     )
     query = Notification.query
     return paginate(query, schema)
Пример #2
0
 def get(self):
     schema = GroupSchema(many=True)
     query = Group.query
     return paginate(query, schema)
Пример #3
0
 def get(self):
     schema = DeviceSchema(many=True)
     query = Device.query
     return paginate(query, schema)
Пример #4
0
 def get(self):
     schema = CustomerSchema(many=True)
     query = Customer.query
     return paginate(query, schema)