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