示例#1
0
 def get(self, id):
     """
     list clients by a user (if the user is an admin of the app)
     """
     clients = ClientsBusiness.list_by_userid(id)
     return marshal({"clients": clients}, get_clients_serializer(True))
示例#2
0
 def get(self, user_id):
     """
     list clients created by a user
     """
     clients = ClientsBusiness.list_by_userid(user_id)
     return marshal({"clients": clients}, get_clients_serializer())