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))
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())