Beispiel #1
0
def delete_user(id):
    userAccess = UserAccess()
    user = userAccess.DeleteUser(id)
    return JSONEncoder().encode(user)
Beispiel #2
0
def get_user(id):
    userAccess = UserAccess()
    user = userAccess.GetUser(id)
    return JSONEncoder().encode(user)
Beispiel #3
0
def update_user():
    userAccess = UserAccess()
    user = json.loads(json.dumps(request.json, cls=DateTimeEncoder),
                      object_hook=User)
    result = userAccess.UpdateUser(user)
    return JSONEncoder().encode(result)
Beispiel #4
0
def get_users():
    userAccess = UserAccess()
    users = userAccess.GetUsers()
    return JSONEncoder().encode(users)