Exemplo n.º 1
0
class Controller(object):
    """API root controller for version 2."""

    workbooks = workbook.WorkbooksController()
    actions = action.ActionsController()
    workflows = workflow.WorkflowsController()
    executions = execution.ExecutionsController()
    tasks = task.TasksController()
    cron_triggers = cron_trigger.CronTriggersController()
    environments = environment.EnvironmentController()
    action_executions = action_execution.ActionExecutionsController()

    @wsme_pecan.wsexpose(RootResource)
    def index(self):
        return RootResource(uri='%s/%s' % (pecan.request.host_url, 'v2'))
Exemplo n.º 2
0
class Controller(object):
    """API root controller for version 2."""

    workbooks = workbook.WorkbooksController()
    actions = action.ActionsController()
    code_sources = code_source.CodeSourcesController()
    dynamic_actions = dynamic_action.DynamicActionsController()
    workflows = workflow.WorkflowsController()
    executions = execution.ExecutionsController()
    tasks = task.TasksController()
    cron_triggers = cron_trigger.CronTriggersController()
    environments = environment.EnvironmentController()
    action_executions = action_execution.ActionExecutionsController()
    services = service.ServicesController()
    event_triggers = event_trigger.EventTriggersController()

    @wsme_pecan.wsexpose(RootResource)
    def index(self):
        return RootResource(uri='%s/%s' %
                            (pecan.request.application_url, 'v2'))