From b4370f0461aedce72bd64a702d25f88dbdaeb87c Mon Sep 17 00:00:00 2001 From: licanwei Date: Thu, 28 Dec 2017 22:06:33 -0800 Subject: [PATCH] update action API description POST/PATCH/DELETE actions APIs aren't permitted. Change-Id: I4126bcc6bf6fe2628748d1f151617a38be06efd8 --- watcher/api/controllers/v1/action.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/watcher/api/controllers/v1/action.py b/watcher/api/controllers/v1/action.py index 73bcd92cc..113ad8bed 100644 --- a/watcher/api/controllers/v1/action.py +++ b/watcher/api/controllers/v1/action.py @@ -341,7 +341,7 @@ class ActionsController(rest.RestController): @wsme_pecan.wsexpose(Action, body=Action, status_code=201) def post(self, action): - """Create a new action. + """Create a new action(forbidden). :param action: a action within the request body. """ @@ -364,7 +364,7 @@ class ActionsController(rest.RestController): @wsme.validate(types.uuid, [ActionPatchType]) @wsme_pecan.wsexpose(Action, types.uuid, body=[ActionPatchType]) def patch(self, action_uuid, patch): - """Update an existing action. + """Update an existing action(forbidden). :param action_uuid: UUID of a action. :param patch: a json PATCH document to apply to this action. @@ -401,7 +401,7 @@ class ActionsController(rest.RestController): @wsme_pecan.wsexpose(None, types.uuid, status_code=204) def delete(self, action_uuid): - """Delete a action. + """Delete a action(forbidden). :param action_uuid: UUID of a action. """