コード例 #1
0
ファイル: controller.py プロジェクト: mzaglia/oauth
 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
ファイル: controller.py プロジェクト: betonr/oauth
 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())