示例#1
0
 def get(self):
     return {'stores': [store.json() for store in StoreModel.find_all()]}
示例#2
0
 def get(cls):
     stores = store_list_schema.dump(StoreModel.find_all())
     return {"Stores": stores}
示例#3
0
 def get(self):
     return {
         'stores':
         list(map(lambda store: store.json(), StoreModel.find_all()))
     }
示例#4
0
 def get(cls):
     return {'stores': [x.json() for x in StoreModel.find_all()]}