Beispiel #1
0
 def get(self, user_id):
     schema = RentalSchema()
     query = CarRental.query.filter_by(driver_id=user_id)
     return paginate(query, schema)
 def get(self):
     schema = UserSchema(many=True)
     query = User.query
     return paginate(query, schema)
Beispiel #3
0
 def get(self):
     schema = CarPoolSchema(many=True)
     query = CarPool.query
     return paginate(query, schema)
Beispiel #4
0
 def get(self, user_id):
     schema = RatingSchema(many=True)
     query = Rating.query.filter_by(user_id=user_id,
                                    rating_type=RatingType.PASSENGER)
     return paginate(query, schema)