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