Esempio n. 1
0
def list_user():
    userService = UserService()
    users = userService.find()
    return ""
Esempio n. 2
0
def count_user():
    userService = UserService()
    users = userService.find()
    count = users.count()
    return str(count)
Esempio n. 3
0
def list_user():
    userService = UserService()
    users = userService.find()
    resp = Response(users, status=200, mimetype='application/json')
    return resp