def get_policies_of_appname(request): app_name = request.match_info.get('app_name') policies = models.get_policies_of_appname(app_name) json_policies = models.to_json(policies) return web.Response(status=200,body=json_policies.encode('utf-8'))
def get_apps(request): apps = models.get_all(models.App) json_apps = models.to_json(apps) return web.Response(status=200,body=json_apps.encode('utf-8'))
def get_crons(request): crons = models.get_all(models.Cron) json_crons = models.to_json(crons) return web.Response(status=200,body=json_crons.encode('utf-8'))
def get_policies(request): policies = models.get_all(models.Policy) json_policies = models.to_json(policies) return web.Response(status=200,body=json_policies.encode('utf-8'))
def get_policies_of_appname(request): app_name = request.match_info.get('app_name') policies = models.get_policies_of_appname(app_name) json_policies = models.to_json(policies) return web.Response(status=200, body=json_policies.encode('utf-8'))
def get_crons(request): crons = models.get_all(models.Cron) json_crons = models.to_json(crons) return web.Response(status=200, body=json_crons.encode('utf-8'))
def get_apps(request): apps = models.get_all(models.App) json_apps = models.to_json(apps) return web.Response(status=200, body=json_apps.encode('utf-8'))
def get_policies(request): policies = models.get_all(models.Policy) json_policies = models.to_json(policies) return web.Response(status=200, body=json_policies.encode('utf-8'))