Exemple #1
0
def update_user(user_id: int, **kwargs):
    user = User.get(user_id)
    user.update(**kwargs)
    return user
Exemple #2
0
def remove_user(user_id: int) -> (str, int):
    user = User.get(user_id)
    user.delete()
    return "", 204
Exemple #3
0
def get_user(user_id: int):
    user = User.get(user_id)
    return user