update action API description
POST/PATCH/DELETE actions APIs aren't permitted. Change-Id: I4126bcc6bf6fe2628748d1f151617a38be06efd8
This commit is contained in:
@@ -341,7 +341,7 @@ class ActionsController(rest.RestController):
|
|||||||
|
|
||||||
@wsme_pecan.wsexpose(Action, body=Action, status_code=201)
|
@wsme_pecan.wsexpose(Action, body=Action, status_code=201)
|
||||||
def post(self, action):
|
def post(self, action):
|
||||||
"""Create a new action.
|
"""Create a new action(forbidden).
|
||||||
|
|
||||||
:param action: a action within the request body.
|
:param action: a action within the request body.
|
||||||
"""
|
"""
|
||||||
@@ -364,7 +364,7 @@ class ActionsController(rest.RestController):
|
|||||||
@wsme.validate(types.uuid, [ActionPatchType])
|
@wsme.validate(types.uuid, [ActionPatchType])
|
||||||
@wsme_pecan.wsexpose(Action, types.uuid, body=[ActionPatchType])
|
@wsme_pecan.wsexpose(Action, types.uuid, body=[ActionPatchType])
|
||||||
def patch(self, action_uuid, patch):
|
def patch(self, action_uuid, patch):
|
||||||
"""Update an existing action.
|
"""Update an existing action(forbidden).
|
||||||
|
|
||||||
:param action_uuid: UUID of a action.
|
:param action_uuid: UUID of a action.
|
||||||
:param patch: a json PATCH document to apply to this 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)
|
@wsme_pecan.wsexpose(None, types.uuid, status_code=204)
|
||||||
def delete(self, action_uuid):
|
def delete(self, action_uuid):
|
||||||
"""Delete a action.
|
"""Delete a action(forbidden).
|
||||||
|
|
||||||
:param action_uuid: UUID of a action.
|
:param action_uuid: UUID of a action.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user