Merge "Fix missing exception decorators in REST API"
This commit is contained in:
commit
e6a1ac2b53
@ -136,6 +136,7 @@ class ActionsController(rest.RestController, hooks.HookController):
|
||||
|
||||
db_api.delete_action_definition(identifier)
|
||||
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.Actions, types.uuid, int, types.uniquelist,
|
||||
types.list, types.uniquelist, wtypes.text,
|
||||
wtypes.text, resources.SCOPE_TYPES, wtypes.text,
|
||||
|
@ -176,6 +176,7 @@ class ActionExecutionsController(rest.RestController):
|
||||
|
||||
return resources.ActionExecution.from_dict(values)
|
||||
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.ActionExecutions, types.uuid, int,
|
||||
types.uniquelist, types.list, types.uniquelist,
|
||||
wtypes.text, wtypes.text, wtypes.text,
|
||||
@ -288,6 +289,7 @@ class ActionExecutionsController(rest.RestController):
|
||||
|
||||
|
||||
class TasksActionExecutionController(rest.RestController):
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.ActionExecutions, types.uuid, types.uuid,
|
||||
int, types.uniquelist, types.list, types.uniquelist,
|
||||
wtypes.text, types.uniquelist, wtypes.text,
|
||||
|
@ -83,6 +83,7 @@ class CronTriggersController(rest.RestController):
|
||||
|
||||
db_api.delete_cron_trigger(name)
|
||||
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.CronTriggers, types.uuid, int,
|
||||
types.uniquelist, types.list, types.uniquelist,
|
||||
wtypes.text, wtypes.text, types.uuid, types.jsontype,
|
||||
|
@ -33,6 +33,7 @@ LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class EnvironmentController(rest.RestController):
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.Environments, types.uuid, int,
|
||||
types.uniquelist, types.list, types.uniquelist,
|
||||
wtypes.text, wtypes.text, types.jsontype,
|
||||
|
@ -116,6 +116,7 @@ class EventTriggersController(rest.RestController):
|
||||
|
||||
triggers.delete_event_trigger(event_trigger.to_dict())
|
||||
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.EventTriggers, types.uuid, int,
|
||||
types.uniquelist, types.list, types.uniquelist,
|
||||
types.jsontype)
|
||||
|
@ -222,6 +222,7 @@ class ExecutionsController(rest.RestController):
|
||||
|
||||
return db_api.delete_workflow_execution(id)
|
||||
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.Executions, types.uuid, int,
|
||||
types.uniquelist, types.list, types.uniquelist,
|
||||
wtypes.text, types.uuid, wtypes.text, types.jsontype,
|
||||
|
@ -48,6 +48,7 @@ def _get_task_resource_with_result(task_ex):
|
||||
|
||||
|
||||
class TaskExecutionsController(rest.RestController):
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.Executions, types.uuid, types.uuid, int,
|
||||
types.uniquelist, types.list, types.uniquelist,
|
||||
wtypes.text, types.uuid, wtypes.text, types.jsontype,
|
||||
@ -143,6 +144,7 @@ class TasksController(rest.RestController):
|
||||
|
||||
return _get_task_resource_with_result(task_ex)
|
||||
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.Tasks, types.uuid, int, types.uniquelist,
|
||||
types.list, types.uniquelist, wtypes.text,
|
||||
wtypes.text, types.uuid, types.uuid, STATE_TYPES,
|
||||
@ -286,6 +288,7 @@ class TasksController(rest.RestController):
|
||||
|
||||
|
||||
class ExecutionTasksController(rest.RestController):
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.Tasks, types.uuid, types.uuid, int,
|
||||
types.uniquelist, types.list, types.uniquelist,
|
||||
wtypes.text, wtypes.text, types.uuid, STATE_TYPES,
|
||||
|
@ -93,6 +93,7 @@ class WorkbooksController(rest.RestController, hooks.HookController):
|
||||
|
||||
db_api.delete_workbook(name)
|
||||
|
||||
@rest_utils.wrap_wsme_controller_exception
|
||||
@wsme_pecan.wsexpose(resources.Workbooks, types.uuid, int,
|
||||
types.uniquelist, types.list, types.uniquelist,
|
||||
wtypes.text, wtypes.text, wtypes.text,
|
||||
|
Loading…
Reference in New Issue
Block a user