Merge "Correct wrong name of APIEventPayload's arg"
This commit is contained in:
commit
23968919cd
@ -198,18 +198,18 @@ pass along API controller specifics.
|
|||||||
Sample usage::
|
Sample usage::
|
||||||
|
|
||||||
# BEFORE_RESPONSE for create:
|
# BEFORE_RESPONSE for create:
|
||||||
APIEventPayload(context, notifier_method, action,
|
APIEventPayload(context, method_name, action,
|
||||||
request_body=req_body,
|
request_body=req_body,
|
||||||
states=[create_result],
|
states=[create_result],
|
||||||
collection_name=self._collection_name)
|
collection_name=self._collection_name)
|
||||||
|
|
||||||
# BEFORE_RESPONSE for delete:
|
# BEFORE_RESPONSE for delete:
|
||||||
APIEventPayload(context, notifier_method, action,
|
APIEventPayload(context, method_name, action,
|
||||||
states=[copy_of_deleted_resource],
|
states=[copy_of_deleted_resource],
|
||||||
collection_name=self._collection_name)
|
collection_name=self._collection_name)
|
||||||
|
|
||||||
# BEFORE_RESPONSE for update:
|
# BEFORE_RESPONSE for update:
|
||||||
APIEventPayload(context, notifier_method, action,
|
APIEventPayload(context, method_name, action,
|
||||||
states=[original, updated],
|
states=[original, updated],
|
||||||
collection_name=self._collection_name)
|
collection_name=self._collection_name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user